Skip to main content

Get Role Version

Retrieve the latest role version details and configuration state in RSA Governance & Lifecycle.

POST https://instance.securid.com/aveksa/command.submit?cmd=getRoleVersion&roleId=2001

Purpose​

The getRoleVersion command retrieves the latest details and metadata for a specific Role. If a pending role version exists, the command returns the attributes of that pending version (for example, in a New or Changed state). If no pending version exists, it returns the current committed state of the role (roleVersionId will be null).

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

Request​

Parameters (URL Query)​

ParameterTypeRequirementDescription
cmdstringCommand name: getRoleVersion.
roleIdintegerThe ID of the role to retrieve. Must be a valid integer.
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 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 view role version).

Response​

Parameters​

ParameterTypeDescription
idintegerUnique ID of the requested role.
roleVersionIdintegerVersion ID of the role version (null if role is in a committed state).
roleNamestringDisplay name of the role.
roleRawNamestringUnique raw identifier of the role.
longDescriptionstringDetailed description of the role.
shortDescriptionstringShort summary of the role.
helpLinkstringHelp URL configured for the role.
availableForRequestintegerIndicates whether the role is requestable: 1 (yes) or 0 (no).
ownerintegerUser ID of the primary owner.
backupOwnerintegerUser ID of the backup owner.
disabledbooleanIndicates whether the role is disabled: true or false.
roleSetIdintegerRole set ID mapped to this role version.
roleTypestringRole type code: "GR" (Global Role), "TR" (Technical Role), or "BR" (Business Role).
statestringCurrent state of the role version (e.g., "Committed", "New", "Changed").
createdByintegerUser ID of the user who created this role version.
creationDatestringTimestamp when this role version was created (format: yyyy-MM-dd HH:mm:ss.S).

Examples​

Request​

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

Response​

JSON Format (format=json):

{
"id": 2001,
"roleVersionId": 5013,
"roleName": "Senior Financial Auditor",
"roleRawName": "ROLE_FIN_AUDITOR",
"longDescription": "Grants elevated read and supervisory audit review access across financial modules.",
"shortDescription": "Senior financial auditing business role",
"helpLink": "https://help.example.com/roles/senior-auditor",
"availableForRequest": 1,
"owner": 1001,
"backupOwner": 1002,
"disabled": false,
"roleSetId": 101,
"roleType": "BR",
"state": "Changed",
"createdBy": 1001,
"creationDate": "2026-03-15 14:22:10.0"
}

Properties Format (format=properties):

id=2001
roleVersionId=5013
roleName=Senior Financial Auditor
roleRawName=ROLE_FIN_AUDITOR
longDescription=Grants elevated read and supervisory audit review access across financial modules.
shortDescription=Senior financial auditing business role
helpLink=https://help.example.com/roles/senior-auditor
availableForRequest=1
owner=1001
backupOwner=1002
disabled=false
roleSetId=101
roleType=BR
state=Changed
createdBy=1001
creationDate=2026-03-15 14:22:10.0

Verified with RSA Governance & Lifecycle version 8.0.0.

References​