updateOrgMemberRoles
Replaces the full set of roles assigned to an org member. Requires the 'manage_members' permission on the org (super admins bypass). Pass the complete desired role list; roles not included are removed.
updateOrgMemberRoles(
orgId: BigInt!
userId: BigInt!
roleIds: [BigInt!]!
): OrgMember!
Arguments
updateOrgMemberRoles.orgId ● BigInt! non-null scalar
Organization id (BigInt as string).
updateOrgMemberRoles.userId ● BigInt! non-null scalar
user_id of the member to update (BigInt as string).
updateOrgMemberRoles.roleIds ● [BigInt!]! non-null scalar
Complete desired list of org_role ids (BigInt strings) to assign; replaces the member's current roles.