Manage Global Group Users with the Cloud Administration Global Groups API 
2 days ago

Manage Global Group Users with the Cloud Administration Global Groups API 

This topic describes how to:

 

Add Users to a Global Group

The following information describes how to add users to a global group with the specified id.

Prerequisite: An administrator needs the rsa.group.users.manage OAuth permission to use this endpoint.

 

Request Requirements

Use the following information to add users to a global group with the specified id.

MethodRequest URLResponse Content TypeResponse Body
PATCH/AdminInterface/restapi/v1/localGroups/{id} application/json Object containing only id about the updated group.

 

Request Body Parameters

The following table describes the request body parameters.

Request ParameterDescriptionRequiredData Type
userIds List of user ids to add to the global group YesList

 

Example Request Body

The following is an example request body.

{
"userIds": ["0064ec40-498f-9273-58de-4119ac5024b9","01808d52-bea1-0408-e3b5-ba3f12bce78c","027bbdcc-713b-7670-6904-87f746f3a08c","04280576-fb25-09ee-0e3c-631a055bcdb2"]
}

Resource Identifier

The following table shows the resource identifier for the global group required to add users to the specified group in the request URL.

Resource IdentifierRequiredDescriptionType
<id>YesID of the global group to which users are added.UUID

 

Response Body Parameters

The following table describes the response body parameters.

ParameterDescriptionData Type
idUnique identifier that represents the global group. UUID

 

Example Response Body

The following is an example response body.

{
"id": "f6b0b45e-a0d6-2864-7ee5-71a9806977cc"
}

 

Response Codes

The following table lists the response codes and their descriptions for this API.

HTTP Status CodeDescription
200Global group users added successfully.
400Operation not performed because of client syntax errors.
403Not authorized to perform the request.
429Too many requests.
500Internal error occurred when processing the request.

 

Remove Users from a Global Group

The following information describes how to remove users from a global group with a specified id.

Prerequisite: An administrator needs the rsa.group.users.manage OAuth permission to use this endpoint.

 

Request Requirements

Use the following information to remove users from a global group with a specified id.

MethodRequest URLResponse Content TypeResponse Body
DELETE/AdminInterface/restapi/v1/localGroups/users/{id} application/json Object containing only id about the updated group.

 

Request Body Parameters

The following table describes the request body parameters.

Request ParameterDescriptionRequiredData Type
userIdsList of user ids to remove from the global group. YesList

 

Example Request Body

The following is an example request body.

{
"userIds": ["0064ec40-498f-9273-58de-4119ac5024b9","01808d52-bea1-0408-e3b5-ba3f12bce78c","027bbdcc-713b-7670-6904-87f746f3a08c","04280576-fb25-09ee-0e3c-631a055bcdb2"]
}

Resource Identifier

The following table shows the resource identifier for the global group required to remove users to the specified group in the request URL.

Resource IdentifierRequiredDescriptionType
<id>YesID of the global group needed to remove users from. UUID

 

Response Body Parameters

The following table describes the response body parameters.

ParameterDescriptionData Type
idUnique identifier that represents the updated global group.UUID

 

Example Response Body

The following is an example response body.

{
"id": "f6b0b45e-a0d6-2864-7ee5-71a9806977cc"
}

 

Response Codes

The following table lists the response codes and their descriptions for this API.

HTTP Status CodeDescription
200Global group users removed successfully.
400Operation not performed because of client syntax errors.
403Not authorized to perform the request.
429Too many requests.
500Internal error occurred when processing the request.

 

List Global Group Users

The following information describes how to return a paginated list of global group users based on the specified page number and page size.

Prerequisite: An administrator needs the rsa.group.users.read OAuth permission to use this endpoint.

 

Request Requirements

Use the following information to return a paginated list of global group users based on the specified page number and page size.

MethodRequest URLResponse Content TypeResponse Body
GET/AdminInterface/restapi/v1/localGroups/users/{id} application/json List of global group objects containing metadata about the returned global group users.

 

Resource Identifiers

The following table shows the resource identifiers for the global group and pagination details that are required in the request URL to retrieve its users.

Resource IdentifierRequiredDescriptionTypeDefault Value Example Value
<id>YesID of the global group needed to find its users UUIDN/AN/A
<pageSize> NoSpecifies the maximum number of matching results to return. Valid values are 1 to 10, inclusive.Integer 510
<pageNumber> NoZero-based index of the page to return. Integer05

 

Response Body Parameters

The following table describes the response body parameters.

ParameterDescriptionData Type
totalPagesTotal number of group pages returned by the query. Integer
totalGroupsTotal number of groups returned by the query.Integer
usersList containing the global group users returned by the query. List
groupsList containing the groups returned by the query.List
idUnique identifier that represents the global group. UUID
nameName of the global group.String
descriptionDescription of the global group.String
readOnly Flag that indicates that this group is created and managed internally in the system. Boolean
createdAt Date that the global group has been created.Timestamp

updatedAt

Date that the global group has been updated.Timestamp
idUnique identifier that represents the global group user. String
emailAddress User's email address. String
firstName User's first name. String
lastNameUser's last name. String

 

Example Response Body

The following is an example response body.

{
"group": {
"id": "7dd8bf57-b615-30fb-889a-bd08491a6461",
"name": "Group 1",
"description": "Group 1 description",
"readOnly": false,
"createdAt": "2024-12-30T10:18:10.587Z",
"updatedAt": "2024-12-30T10:48:13.168Z"
},
"users": [
{
"id": "0064ec40-498f-9273-58de-4119ac5024b9",
"emailAddress": "user1@mycompany.com",
"firstName": "user",
"lastName": "1"
},
{
"id": "01808d52-bea1-0408-e3b5-ba3f12bce78c",
"emailAddress": "user2@mycompany.com",
"firstName": "user",
"lastName": "2"
},
{
"id": "027bbdcc-713b-7670-6904-87f746f3a08c",
"emailAddress": "user3@mycompany.com",
"firstName": "user",
"lastName": "3"
},
{
"id": "04280576-fb25-09ee-0e3c-631a055bcdb2",
"emailAddress": "user4@mycompany.com",
"firstName": "user",
"lastName": "4"
}
],
"totalUsers": 4,
"totalPages": 1
}

 

Response Codes

The following table lists the response codes and their descriptions for this API.

HTTP Status CodeDescription
200Global group user list retrieved successfully.
400Operation not performed because of client syntax errors.
403Not authorized to perform the request.
429Too many requests.
500Internal error occurred when processing the request.

 

For more information, see Cloud Administration Global Groups API .