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
- Log in to the Idira administration page.
- Security Insights -> Reports -> My Reports.
- Press the "New report" button.
- Enter a report name, i,e - "User and Roles".
- Press on "Edit Script" -> "Yes".
- 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;
- Press Save.
- To see the report, click on the report name.