Skip to main content

SetMemberRolesInput

Replace a member's roles in a group (the listed roles become their full set).

input SetMemberRolesInput {
groupId: BigInt!
userId: BigInt!
roleIds: [BigInt!]!
}

Fields

SetMemberRolesInput.groupId ● BigInt! non-null scalar

The group (team/channel) id.

SetMemberRolesInput.userId ● BigInt! non-null scalar

The member (user) whose roles to set.

SetMemberRolesInput.roleIds ● [BigInt!]! non-null scalar

The complete set of group role ids the member should have. Roles not listed are removed; unknown ids or ids from other groups are ignored.

Member Of

setChannelMemberRoles mutation ● setTeamMemberRoles mutation