Managing Local Group Users with the Cloud Administration Local Groups Public API 
a year ago

Managing Local Group Users with the Cloud Administration Local Groups Public API 

This topic describes how to:

Note:   The administrator should have the appropriate permissions within the OAuth scope to access these endpoints. For more information, see OAuth 2.0-Based Permissions for the Cloud Administration APIs.

Add Users to Local Group

The following information describes how to add user(s) to a local group with the specified id.

Prerequisite: The administrator should have the "rsa.group.users.manage" OAuth permission assigned to use this endpoint.

Request Overview

Use the following information to add user(s) to a local group with the specified id.

ActionMethodRequest URLResponse Content TypeResponse Body
Adds user(s) to the local group with the specified id.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.

Resource Identifier DescriptionRequiredData Type
userIds List of user ids to add to the local 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"]
}
Request ParameterRequiredDescriptionType
<id>YesID of the local group needed to add users toUUID

Response Body Parameters

The following table describes the response body parameters.

ParameterDescriptionData Type
idUnique identifier that represents the local 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
200Local group created 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 Local Group

The following information describes how to remove user(s) from the local group with a specified id.

Prerequisite: The administrator should have the "rsa.group.users.manage" OAuth permission assigned to use this endpoint.

Request Overview

Use the following information to remove user(s) from the local group with a specified id.

ActionMethodRequest URLResponse Content TypeResponse Body
Removes user(s) from the local group with a specified id.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.

Resource Identifier DescriptionRequiredData Type
userIdsList of user ids to remove from the local 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 IdentifierRequiredDescriptionType
<id>YesID of the local 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 local 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
200Local group created 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 Local Group Users

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

Prerequisite: The administrator should have the "rsa.group.users.read" OAuth permission assigned to use this endpoint.

Request Overview

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

ActionMethodRequest URLResponse Content TypeResponse Body
Returns a list of local group users paginated based on the provided page number and page size.GET/AdminInterface/restapi/v1/localGroups/users/{id} application/json List of local group objects containing metadata about the returned local group users.

 

Resource IdentifierRequiredDescriptionTypeDefault Value Example Value
<id>YesID of the local 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 local group users returned by the query. List
groupsList containing the groups returned by the query.List
idUnique identifier that represents the local group. UUID
nameName of the local group.String
descriptionDescription of the local group.String
readOnly Flag that indicates that this group is created and managed internally in the system. Boolean
createdAt Date that the local group has been created.Timestamp

updatedAt

Date that the local group has been updated.Timestamp
idUnique identifier that represents the local 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
200Local group created 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.

 

Return to Cloud Administration Local Groups Public API