Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

How can I invite users in bulk using api?

I want to add 50 users to my organization an I don't want to click on invite users 50 times?

Is there any api feature to send invite on their email id automatically?

2 answers

1 accepted

2 votes
Answer accepted
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 27, 2020

Hello Ayushi,

Thank you for reaching out to Atlassian Community!

In order to create users with API, there is an experimental endpoint that allows that:

For them to receive an invite to finish the account creation, please use "notification": "true".

Please, give it a try and let us know how it goes.

Regards,
Angélica

Thanks for the answer!

I want to add multiple users at the same time using the some api. 

Above api can only invite 1 user at a time.

user.PNG

Using above parameters, it is not working as the api allows to take information only one user.

I want to send invite to 10 people at the same time using API.

Is there any api available to do this?

Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 29, 2020

It would be necessary to call this API 50 times using FOR and changing the values (email address and full name) for each user, so it would be almost the same thing adding one customer at a time in the UI.

On the UI, it's possible to invite 10 users at a time, so maybe as it's only 50 users, you could use the UI and follow the steps to add users only 5 times.

Like ayushi likes this

Does this "create user" API work for confluence, or is it just JIRA?

The users are being added to the confluence and Atlas groups by default.

How do you choose the groups they should be added to?

I have tried the below with no success

{
  "emailAddress""admin@mail.com",
  "notification""true",
  "groups": {
        "size"2,
        "items": ["staff""jira-software"]
    }
}

Thanks
0 votes
Angélica Luz
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
Feb 23, 2022

Hello @Daniel Muscat,

Thanks for reaching out to Community!

Currently, there isn't an API to invite or manage users in Confluence.

There is a feature request suggesting the implementation of this ability:

If you also have Jira, you can use the API I mentioned to invite users and then, you can add them to the Confluence group only.

In case you have Confluence only, then it won't be possible to use the API.

Kind regards,
Angélica

The users are being added to the Confluence and Atlas groups by default.

How do you choose the groups they should be added to?

I have tried the below with no success

{
  "emailAddress""admin@mail.com",
  "notification""true",
  "groups": {
        "size"2,
        "items": ["staff""jira-software"]
    }
}

Thanks

I'm fixing this by removing the user from the groups after he's been added.

The Jira Cloud platform REST API (atlassian.com)

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events