update_team_member_role
Assign a new organization role to a member by user ID. Requires admin key, enforces role permissions, and returns confirmation.
Instructions
Change one organization member's role by user_id (find ids with list_team_members). Requires an admin API key. Guardrails: you cannot change your own role (self_role_change_forbidden), only an owner can grant the owner role (owner_grant_forbidden), and demoting the last active owner is refused (last_owner). An unknown user_id fails with not_found. Returns the updated user_id and a confirmation message. Use remove_team_member to take the member out of the organization instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | New org role for the member. | |
| user_id | Yes | Target member's user_id from list_team_members. |