How to retrieve Role UUID for Idira Identity API

How to retrieve Role UUID for Idira Identity API

95
Created On 11/10/26 10:57 AM - Last Modified 11/10/26 16:09 PM


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.

  1. Log in to the Idira Identity Admin Portal.

  2. Navigate to Security Insights > Reports.

  3. Click New Report.

  4. Select Edit Script and paste the following SQL script into the editor:

    SELECT * FROM Role
    
  5. Run the report.

  6. 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.

  1. Target the /Redrock/query endpoint in your Identity tenant.

  2. Use the following JSON payload:

    {
    "Script": "SELECT * FROM Role",
    "Args": {
        "PageNumber": 1,
        "PageSize": 100,
        "Limit": 100000,
        "SortBy": "",
        "Caching": -1
        }
    }
    
  3. 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.



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001WdlCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail