How to retrieve Role UUID for Idira Identity API
Objective
When working with the Role Management API, specifically the "Get role" endpoint, the system requires a Role UUID to identify the target role.
However, the UUID is not always immediately visible in the general dashboard view. This article details the two primary methods to retrieve this specific ID so you can proceed with API calls.
Environment
25.11 Identity API
Procedure
There are two options to retrieve the Role UUID: via the Identity Portal (GUI) or via a direct API query.
Option 1: Retrieve via Custom Report (Identity Portal)
You can generate a custom report within the Identity Administration portal to list roles and their IDs.
-
Log in to the Idira Identity Admin Portal.
-
Navigate to Security Insights > Reports.
-
Click New Report.
-
Select Edit Script and paste the following SQL script into the editor:
SELECT * FROM Role -
Run the report.
-
Locate the ID column in the output. This value represents the Role UUID.
Option 2: Retrieve via API Client
You can utilize the Redrock query endpoint to fetch Role IDs programmatically.
-
Target the
/Redrock/queryendpoint in your Identity tenant. -
Use the following JSON payload:
{ "Script": "SELECT * FROM Role", "Args": { "PageNumber": 1, "PageSize": 100, "Limit": 100000, "SortBy": "", "Caching": -1 } } -
The response will contain the Role details, including the UUIDs.
Note: For further details on constructing queries, please refer to the RedRock API documentation on SQL requests.
-
API Limitations: There is currently no single API endpoint designed to retrieve all roles and policies with full configuration details in one call. The methods above are specific to retrieving the identifiers.
-
Documentation: All available API functionality is documented in the Identity Developer Reference.