How can I invite users in bulk using api?

ayushi May 26, 2020

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

ayushi May 28, 2020

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
Daniel Muscat February 22, 2022

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

Bassam Gemayel January 31, 2023

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.
February 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

Bassam Gemayel January 31, 2023

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
Salomon Häseli February 17, 2023

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