The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

API delete managed account

Sebastian.Kaczmarkiewicz
July 17, 2024

Hi,

I'm trying to implement personal data removal for not active user (for GDPR purpose).

After domain user removal, user is not accessible in Jira, but on "Managed Account" there are his/her personal data. When you delete it from this page then it is cleared.

I was trying to use:  

 

DEL /rest/api/2/user
but it does not bring any effect.
Could you help me how to achieve it?

Another option for me is anonymization, but I do not see any endpoint in Api documentation which could do it for me.

 

regards

Sebastian Kaczmarkiewicz

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
John Fetzik
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 Champions.
July 17, 2024

Looking at the URL format example you give, you may not be using the correct REST API base/endpoint?

Check out the User management API docs at https://developer.atlassian.com/cloud/admin/user-management/rest/intro/#about

Sebastian.Kaczmarkiewicz
July 22, 2024

Delete endpoint returning me 404 with:

<body>
    <pre>Cannot GET /users/712020:4a6abdb1-d476-4e22-9c69-793ca5fcff7f/manage/lifecycle/delete</pre>
</body>

account id is correct.
What I'm doing wrong?
John Fetzik
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 Champions.
July 22, 2024

Could be a few things.

First, it looks like you are doing a GET, but for the delete endpoint you need to use a POST.

Second, use the get profile endpoint to make sure the user id exists, and you have permission to see it.

Third, you could have a formatting problem with your HTTP request. You would need to include the "code" you are using to make the request.

 

Sebastian.Kaczmarkiewicz
July 23, 2024

In first, I actually had DELETE verb.
Second, the deleted account must be deactivated in order to work.

Thanks for help

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
TAGS
AUG Leaders

Atlassian Community Events