Through the Managed Accounts page, we're able to select users and choose "Delete Account". Is this functionality available via API or available somewhere as an option for bulk users? We have about 10,000 accounts that were inadvertently created. and we would like to remove them.
Hi @Mike Walsh ,
I think there is only a way to disable accounts, you can find the documentation here:
Hi @Mike Walsh ,
Found this information: https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-users/#api-rest-api-2-user-delete
I never used this Method, because is experimental but may be work for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
From my understanding (and a few tests with it), that API call appears to delete the user from Jira but the user remains under the Managed Accounts for our overarching Atlassian account.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
finally do you got the solution??
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We could not get a true delete to work. We went with https://developer.atlassian.com/cloud/admin/user-management/rest/api-group-users/#api-users-account-id-manage-lifecycle-disable-post to simply disable the users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We were able to implement a workaround using postman interceptor to capture the DELETE request being sent from the web UI and scripted the removal of the managed accounts. Fortunately the accounts don't need to be deactivated first, you can make the delete request straight away for an active account.
We used the same approach to get rid of dashboards programmatically.
Hope this helps point someone in the right direction.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Temistocles Valdes Hi, could you please tell how u did that ? I tried to achieve the same thing with burp suite , i intercepted the request but it generates jwt token during the deletion process
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I used Chrome's F12 tools to copy the DELETE request that occurs from the Atlassian Admin Users page as a curl (CMD) which I saved as `jira-del-user.cmd` on my path.
I then edited that file to look like this (I removed much of the `curl` command from here for security/privacy reasons, it's about 17 lines long):
setlocal
set USERID=%1
set ORGID=<your org id>
curl ^"https://admin.atlassian.com/gateway/api/adminhub/um/org/%ORGID%/users/%USERID%^" ^
-X ^"DELETE^" ^
-H ^"accept: */*^" ^
...SNIP!...
After that I exported users as CSV did some text munging using a regex replace Search for `^` and replace with `jira-del-user.cmd `. Giving me several hundred lines looking like:
del-jira-user.cmd 1234deadbeef
del-jira-user.cmd 123456:deadbeef-dead-beef-dead-beefdead
which you can paste into a CMD window.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.