post https://{host}/v2/userGroup2/join
This API allows you to add a member to a group.
Pass at lease one among the query parameters. - id, externalId, primaryUserId.
Make sure you have the appropriate access control configured. For more information, see access group documentation.
API endpoint
{host}.api.capillarytech.com/v2/organization/userGroup2/join
Body parameters
Parameter | Description |
---|---|
userId | The unique identifier for the user. |
primaryMember | A boolean value indicating whether the user is a primary member or not. |
permissions | An array of strings that represent the permissions assigned to the user. |
Response parameters
Parameter | Description |
---|---|
response | Array containing details of the response entity and the result. |
response[].entityId | Contains information about the entity's identification and associated properties. |
response[].entityId.userId | Unique identifier of the user associated with the entity. |
response[].entityId.groupId | Unique identifier of the group associated with the entity. |
response[].entityId.permissions | Array of permissions granted to the entity. |
response[].entityId.defaultGroup | Boolean indicating whether the entity belongs to a default group or not. |
response[].entityId.active | Boolean indicating if the entity is active. |
response[].entityId.primaryMember | Boolean indicating if the entity is a primary member or not. |
response[].result | Contains the resultant details after processing the request,. |
response[].result.userId | Unique identifier of the user associated with the result. |
response[].result.groupId | Unique identifier of the group associated with the result. |
response[].result.permissions | Array of permissions granted to the result. |
response[].result.defaultGroup | Boolean indicating whether the result belongs to a default group or not. |
response[].result.active | Boolean indicating if the result is active. |
response[].result.primaryMember | Boolean indicating if the result is a primary member or not. |
response[].warnings | Array containing any warnings related to the response. |
totalCount | The total number of entities in the response. |
failureCount | The total number of failures during the processing. |