DELETE/v1/user/{username}/membership

Remove a user from a team

Removes the specified user from a team. Provide the user's username and the team's uuid in the request. The authenticated user needs ACCESS_MANAGEMENT or ACCESS_MANAGEMENT_DELETE permission to make this change.

1 parameter · 1 body field
usernamestringrequired
The valid username of the user to remove from a team.

Team association details identifying the team to remove the user from.

uuidstringoptional
The UUID of the team to disassociate from the user.

4 status codes
200Returns the updated user object, including the user's teams and permissions.
emailstringoptional
permissionsarray<object>optional
teamsarray<object>optional
usernamestringrequired
304Returned when the user is not a member of the specified team.
401Returned when the request is unauthorized.
404Returned when the user or team cannot be found.

Error handling

A 401 indicates an unauthorized request; the authenticated user must have ACCESS_MANAGEMENT or ACCESS_MANAGEMENT_DELETE permission. A 404 is returned when the user or team identified by uuid cannot be found. The username path parameter must be a valid username.