← API reference
Mutation / admin

setTeamMemberRole

Set a team member's role. Team admins administer the stacks the team owns. Requires team:write permission.

Arguments

teamIdTeamID!

Team containing the membership

userIdUserID!

Member whose role changes

New role

Returns SetTeamMemberRolePayload!

Explore in a view

Administration and IAM
View exact SDL
"""
Set a team member's role. Team admins administer the stacks the team owns. Requires team:write permission.
"""
setTeamMemberRole(
  """Team containing the membership"""
  teamId: TeamID!
  """Member whose role changes"""
  userId: UserID!
  """New role"""
  role: TeamMemberRole!
): SetTeamMemberRolePayload! @topic(names: ["admin"])

Schema reference describes the API contract. Actual access is checked by the platform for every operation.