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

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 Leaders.
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 Leaders.
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

Suggest an answer

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

Atlassian Community Events