Skip to main content

How can I fix the 'You cannot remove a member who has more access than you' error when deleting a Member via the API?

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 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.

Did this answer your question?