Forums

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

Is it possible to active/Deactive Assignment group in Jira cloud

Mohammed Haneefa Farook
Contributor
July 21, 2023

Hi,

I need to Active/ Deactivate user in Jira through Rest API for Jira Cloud.

Is it possible to do ?? 

2 answers

1 vote
Jehan Bhathena
Community Champion
July 21, 2023

Hi @Mohammed Haneefa Farook ,

Unfortunately there is no direct API endpoint for activation/deactivation.

There is a workaround that I use for this though, you can get the Deactivate/Active API from the Network tab in the developer console, and pass the Cookie and Token from the Browser window as well.

The "Suspend" user API is the nearest you can get https://developer.atlassian.com/cloud/admin/user-management/rest/api-group-lifecycle/#api-users-account-id-manage-lifecycle-disable-post , although from what I remember for this API, you can only use this on user's from your own domain.

If you're trying to revoke access from a certain tool, I usually remove the user from the Group that grants product access, eg. If you want to revoke the user's access from Jira use this API https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-groups/#api-rest-api-3-group-user-delete to remove the user from that group, and the product access will get revoked as a result.

Hope this helps.

0 votes
Sanjen Bariki
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.
July 21, 2023

 

Hi @Mohammed Haneefa Farook ,

 

Welcome to the Atlassian community!

As I have checked, I try from my end but I did not get any output. It might be not possible and I did figure out how to format the authentication header, which might be helpful: 

You can check the below response, Which is related to your problem.

If possible, Please a support ticket to Atlassian team for the confirmation.

 

Accept the answer If it helps you😑

Regards,

Sanjen Bariki

Suggest an answer

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

Atlassian Community Events