How to provision users while making them members of the certain groups?

Inna S
Contributor
November 5, 2024

Hi, 

looking for a way to create a user for Confluence (or/and Jira) via REST API.

I see there is an experimental end point to create a user but not to add them to a group.

As we manage an access to Confluence, Jira and specific projects and features there by way of groups, this is a critical point. 

Using a 'default' group is not an option as we do not want everyone end up in this group. In any case people should be assigned to a group upon creation to prevent inadequate access issues.

One of the reasons to look into this is Atlassian's inability to provide segregated access to admin features: e.g. delegate user management without letting people to manage issue types.

 

I did look into user provisioning, user management and group management APIs. 

 

Thank you.

2 answers

1 accepted

1 vote
Answer accepted
Kieren _SmolSoftware_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 5, 2024

The is an API that allow you to add users to groups:

https://developer.atlassian.com/cloud/admin/organization/rest/api-group-directory/#api-v1-orgs-orgid-directory-groups-groupid-memberships-post

 

Another option is to use an app like Admin Automations to add users to groups.

Inna S
Contributor
November 11, 2024

Thank you, @Kieren _SmolSoftware_. Very much appreciated!

Like Kieren _SmolSoftware_ likes this
0 votes
Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
November 5, 2024

Hi @Inna S 

There can be a few approaches to this use case

  • Use 2 APIs, first use the Create User with no product access, and once the user is created add that ID to the group you need.
  • If you have the new user management, would recommend using the User Provision, it lets you manage the groups Directly from your SSO provider.

Hope this helps.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events