-
Print
-
DarkLight
PUT /teams/{userId}/groups
Add or remove groups of the user.
Note
To update an SSO user who hasn't logged into the system, you can pass the invitation ID as userId and in the body set is_invitation_id to true.
Header
Parameter | Type | Description |
---|---|---|
api_token | string | You can get the REST API from Settings > Advanced > API tokens. |
Body Parameters
Parameter | Required | Type | Description |
---|---|---|---|
associated_groups | Yes | string[] | An array of group IDs the user is associated with. |
is_invitation_id | No | boolean | Applicable only for SSO users. If temporary invitation ID is passed as userId, then set this to true. |
Sample Request
{
"associated_groupsassociated_portal_role_id": "c1b8ae08-78d5-41d9-b3c4-3b0892b05ca8",
"is_invitation_id": false
}
Sample Response
If the result property is true, then it indicates that the record has been successfully updated.
Was this article helpful?