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

  • 204

    The user was removed from the organization members successfully.

  • 400

    Bad Request

  • 401

    Unauthorized

  • 403

    Forbidden

  • 404

    The user is not a member of the organization.

  • 422

    Unprocessable Content

DELETE /api/organizations/{id}/users/{userId}
curl \
 -X DELETE https://[tenant_id].logto.app/api/organizations/{id}/users/{userId}