Issue
We are trying to automatically delete accounts. However, when we try to call the Delete an Organization Member endpoint with the following scopes:
member:adminmember:invitemember:readmember:write
the request returns this response:
400 - "{\"detail\":\"You cannot remove a member who has more access than you.\"}"Applies To
All customers
Resolution
It is normally caused when you are using an organization auth token. This specific endpoint requires a personal token instead.
To create one, go to Settings -> Personal Tokens -> Create New Token. Remember to add the member:admin permissions. Using this new token should allow you to delete organization members using this endpoint.
