elaichi__team__set_member_admin
Appoint or remove a TEAM administrator — the per-team counterpart of the org-wide team:manage permission. is_admin: true gives this person add/remove-member, rename and describe rights over THIS team only; is_admin: false demotes them back to an ordinary member with no such rights. The person must already be on the team (team.add_member first) — this does not add them, and it 404s if they are not already a member. Refuses if you try to appoint YOURSELF (self-promotion) — the same self-escalation guard team.add_member enforces; demoting yourself is allowed. Appointing a team admin does not widen what they can see or use — it only lets them manage who else is on this one team — and it never reaches team.delete, which stays org-wide-team:manage-only regardless of who administers the team. This operation itself needs org-wide team:manage to call, the same narrower gate its REST route enforces: unlike team.add_member/team.remove_member, an existing team administrator with no org-wide team:manage cannot use this op to promote or demote anyone on their own team. Returns the TEAM record, the same shape team.get returns.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| team_id | Yes | Team id (`team_…`) from team.list. | |
| user_id | Yes | The person’s USER id (`usr_…`) from member.list — not a membership id, and not an email address. | |
| is_admin | Yes | true appoints this person a team administrator of THIS team — they gain add/remove-member, rename and describe rights over it, scoped to this one team. false demotes them back to an ordinary member. |