I am trying to do do a clean up of users and their licenses on Jira Cloud, not deactivating their Jira accounts. Using this endpoint https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-groups/#api-rest-api-2-group-user-delete (as I have seen on Solved: Is there an admin API(organisation level) to revok...):
But getting either “Specified user does not exist or you do not have required permissions” or “The group ID and group name can not be empty.” errorMessages.
I have tried the group ID, group name, user account ID and username …
Please advise ASAP if anyone has gotten this working?