Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Automate User Invitation with API to assign role, product access and group membership

Jun
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 2, 2021

We are working on an automation task to invite users to JIRA and Confluence using API, essentially replicating the steps under Improve User Management Experience as mentioned in https://support.atlassian.com/user-management/docs/invite-a-user/

Atlassian's Cloud Admin User Management REST API seem to not have an invitation endpoint, and neither does the Confluence Cloud REST API. However, the JIRA Cloud Platform REST API v2 has User and Group related endpoints which allows invitation of users (via Create User) and adding to groups.

Let's suppose I invite a user to JIRA via the aforementioned Create User endpoint, would this also allow this new user to access Confluence with the same account?

 

If this is possible, are there API endpoints that allow us to:

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Champion
September 4, 2021

Hi @Jun ,

welcome to the Atlassian Community!

In general user has only one account in your site and if you want him to be able to use Jira and Confluence, you need to add him to the appropriate user groups (usually jira-software-users and confluence-users).

It looks like "Create user" endpoint only creates the new user in your site, but not handles the application access (as applicationKeys parameter is deprecated).

Therefore it seems to me you need to use the mentioned endpoint "Add user to group" to add the user to the groups after the creation "manually".

Suggest an answer

Log in or Sign up to answer