-
Suggestion
-
Resolution: Fixed
-
None
-
64
-
Update December 2023
Hey all,
We will be closing out this request as the public rest API endpoint https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-delete is here and works as expected to delete customer account users from a site.
Feel free to reach out to me if there are any further questions or concerns.
Cheers,
Martin
Problem Definition:
There are endpoints to add user, remove user and all in Jira service desk but there is no endpoint to delete a customer account. It's a time-consuming task to manually delete 1000 users from the user management
Suggested Solution:
It will be great if there is an API endpoint to delete the customer account.
I believe this is supported now.
The delete user endpoint is currently experimental but functional: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-rest-api-3-user-delete
And if you want to ensure you are deleting a portal-only customer account and not an Atlassian account, then search the user first.
If you search for a user (e.g. via /rest/api/3/user or /rest/api/3/user/search) it returns an "accountType" property for each account.
If you see the entry has "accountType" equal to "customer", then you can delete that account by ID and it will delete the portal-only account.