Forums

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

Remove a user to a specific group using Jira API.

Alex L. Lacanilao Jr. March 26, 2021

A new user will be added to both Jira and Confluence using Jira API and working perfectly. I would like to add a user with specific access only to Jira or Confluence using Jira API and I think to do this is by removing a user to a group using either Jira or Confluence API.

Upon testing, when I remove a user to a group for example to Jira or Confluence only, It removes the user to both Jira and Confluence and the user has been deleted to users.  Does the API command not properly working upon removing the user to a group? can anyone help me with this? 

1 answer

1 accepted

1 vote
Answer accepted
Prince Nyeche
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.
March 26, 2021

Hi @Alex L. Lacanilao Jr. 

Removing a user from group API doesn't remove the user from both application group. You have to specify which group you want to remove and that specific group is removed from the user. If in your case you get a different result, probably you should share the API specifically that you're using.

Alex L. Lacanilao Jr. March 27, 2021

Apologies for the late reply, I'm using Jira Cloud and Confluence REST API. For your reference please see the image below.api.PNG

Alex L. Lacanilao Jr. March 28, 2021

@Prince N Please see the image above for the REST API I'm using and the user is no longer exists in the users after executing this.

Alex L. Lacanilao Jr. March 28, 2021

@Prince Nyeche Thank you for your answer. I found out that the URL I'm using is for the user that's why it delete the user and unable to remove in a specific group.
 

Prince Nyeche
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.
March 28, 2021

Hey @Alex L. Lacanilao Jr.  

Glad it worked out well for you. All the best.

Kalluri_SrinivasaKumar April 22, 2025

Hi @Alex L. Lacanilao Jr.  I'm using Datacenter, I need remove user in Stash/bitbucket using script in Jira, is it possible?

Suggest an answer

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

Atlassian Community Events