How to Create a Report to Export All Users and Their Roles in Identity

How to Create a Report to Export All Users and Their Roles in Identity

85
Created On 11/10/26 10:59 AM - Last Modified 11/10/26 16:08 PM


Objective


To create a report to reflect all Users and their Roles, follow the step-by-step instructions below.



Environment


Identity Identity Compliance

Procedure


  1. Log in to the Idira administration page.

  2. Security Insights -> Reports -> My Reports.

  3. Press the "New report" button.

  4. Enter a report name, i,e - "User and Roles".

  5. Press on "Edit Script" -> "Yes".

  6. In the Editor screen, enter the following:
SELECT 
    u.Username,
    STRING_AGG(r.Name, ', ') AS Roles
FROM 
    RoleMember ur
JOIN 
    User u ON ur.MemberID = u.ID
JOIN 
    Role r ON ur.RoleID = r.ID
WHERE
    ur.MemberType = 'User'
GROUP BY 
    u.ID, 
    u.Username;

 

  1. Press Save.

  2. To see the report, click on the report name.


Actions
  • Print
  • Copy Link

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