Platform & adminMu Mutation

setTeamMemberRole

Topics: Admin IAM

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

Returns

SetTeamMemberRolePayload!

Arguments

teamId

TeamID!Required

Team containing the membership

userId

UserID!Required

Member whose role changes

New role

Possible values (2)
MEMBER

Does the team's work on the stacks it owns

ADMIN

Also administers the stacks the team owns: rules, bypass, review dismissal and secrets

Exact field 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", "iam"])

Declared on Mutation. Access is checked by the platform for each operation.