Forums

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

How to edit user groups?

Jose Lezana January 3, 2019

I´d like to know if is there any way like SDK script or query to edit users groups/roles they belong to.

Thanks,

José.-

1 answer

0 votes
Andy Heinzer
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.
January 4, 2019

I don't have a full script to do this.  But this is something that you could probably work up using Jira's REST API.  There is an endpoint called api/2/group/user

This endpoint allows you to add a given user to a group. 

You could use a utility like curl to make these calls, or you could use something like python.  More examples in Jira REST API examples

Note: These groups will have to exist in the Jira Internal directory for you to be able to modify the group memberships this way.  If the groups are coming into Jira from an external directory (LDAP/Active Directory), then Jira does not actually have control over the user group memberships in most cases.  In those cases the user memberships are determined by the external directory itself.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events