assignRole( )


Assigns a specific role to group members.

Note: This function is only relevant for site admins, and group members with group admin permissions.

について assignRole() function returns a Promise that resolves to the newly-assigned role after it has successfully been assigned. Assigning a role overrides an existing role. For example, assigning a member role to an admin unassigned their admin role.

メソッド宣言
コピー
メソッド・パラメータ
groupIdstringRequired

Group ID.


memberIdsArray<string>Required

Member IDs.

Max: 100 member IDs


roleGroupRoleRequired

Role to assign.


optionsAssignRoleOptions
リターン
Return Type:Promise<AssignRoleResponse>
役に立ちましたか?
はい
いいえ