Remove user member from organization

DELETE /api/organizations/{id}/users/{userId}

Remove a user's membership from the specified organization.

Path parameters

  • id string Required

    The unique identifier of the organization.

  • userId string Required

    The unique identifier of the user.

Responses

  • The user was removed from the organization members successfully.

  • Bad Request

  • Unauthorized

  • Forbidden

  • The user is not a member of the organization.

  • Unprocessable Content

DELETE /api/organizations/{id}/users/{userId}
curl \
 -X DELETE https://[tenant_id].logto.app/api/organizations/{id}/users/{userId} \
 -H "Authorization: Bearer $ACCESS_TOKEN"