Hello,
I'm an organization admin for my org, and I need to clean up some duplicate accounts that were created by an improper AD sync . I'm running the following:
$ curl --request DELETE \
> --url 'https://<myorg>.atlassian.net/rest/api/3/user?accountId=<acctId>' \
> --user 'email:token'
and getting the following error:
{"errorMessages":["Specified user does not exist or you do not have required permissions"],"errors":{}}
I've verified that the user is there, and that I have permissions for this- I can also do this sucessfully from the UI, but as I have a lot to go through, I'd rather use a script. Any ideas?
I don't see that deleting users via the user management api is allowed, referencing this page:
https://developer.atlassian.com/cloud/admin/user-management/rest/intro/
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.