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:admin
-
member:invite
-
member:read
-
member: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 seems, that you are currently using an organization auth token. This specific endpoint is one that needs a token that is associated with your account instead.
To create one, click on the Organization name at the top left of your page -> User auth tokens (right below User Settings) -> Create New Token -> give the token member:admin
permissions. Using this new token should allow you to delete organization members using this endpoint.