Skip to main content

Commit Role

Commit pending configuration changes to a role definition in RSA Governance & Lifecycle.

POST https://instance.securid.com/aveksa/command.submit?cmd=commitRole

Purpose​

The commitRole command commits current changes staged on a specified Role ID. When changes are made using role management commands (such as creating roles, updating metadata, or modifying group memberships), the role enters a pending or draft state. Executing commitRole generates an internal change request to apply the modifications.

Parameters are passed as URL query parameters using an HTTP POST request.

Request​

Parameters​

ParameterTypeRequirementDescription
cmdstringCommand name: commitRole.
roleIdintegerThe ID of the role for which changes need to be committed.
formatstringOptionalThe response format:

properties: (Default) Key-value format (key=value). If multiple objects return, values are comma-separated.

json: JavaScript Object Notation format. Suitable for programmatic parsing.
tokenstringDeprecatedSession token retrieved from loginUser. Deprecated. Use the Authorization request header instead.

Request Headers​

HeaderTypeRequirementDescription
AuthorizationstringBearer token for a user with system administrator privileges, obtained via loginUser. Format: Bearer <token>.
AcceptstringOptionalDesired response MIME type (for example, application/json or text/plain).
Content-TypestringOptionalContent type header: application/x-www-form-urlencoded or application/json.
note

The Authorization request header replaces the deprecated token URL query parameter.

Token Type Requirement

Role management commands currently require an authenticated user session token obtained via loginUser with the Role Administrator capability. While the Web Services Administration console allows mapping Role commands to a Trusted Application, requests using a Trusted Application token (loginTrustedApp) currently return HTTP 403 (Not authorized to commit role).

Response​

Parameters​

ParameterTypeDescription
crIdintegerChange request ID generated for updating the specified Role ID.
crNamestringChange request name generated for updating the specified Role ID.
statusstringExecution result: success or failure.
messagestringOptional diagnostic or informational message returned by the server.

Examples​

Request​

curl -X POST \
"https://instance.securid.com/aveksa/command.submit?cmd=commitRole&roleId=3&format=json" \
-H "Authorization: Bearer <user-token>" \
-H "Accept: application/json"

Response​

JSON Format (format=json):

{
"status": "success",
"crId": 1042,
"crName": "Update Role: Security Analyst",
"message": "Role committed successfully."
}

Properties Format (format=properties):

status=success
crId=1042
crName=Update Role: Security Analyst
message=Role committed successfully.

Verified with RSA Governance & Lifecycle version 8.0.0.

References​