• Post category:BI Publisher
  • Post comments:6 Comments
  • Post last modified:January 22, 2021
  • Reading time:3 mins read
You are currently viewing Security Matrix Users and their Roles
Security Matrix Users and their Roles

For every implementation, there would be functional consultant who looks into the security and their job is to create a security matrix with all users list and their roles mapped on to a sheet. It would be tough to create this sheet manually when there are 1000’s of employees and it doesn’t make any sense to do it manually.

In order to overcome this challenge, we can create a BI Report and use the direct database option of OTBI to create pivot table to get the users/roles in matrix format.

SQL Query:
SELECT  
PU.USERNAME,
PRD.ROLE_NAME,
‘X’
FROM 
PER_USER_ROLES PUR,
PER_USERS PU,
PER_ROLES_DN_TL PRD
WHERE  PU.ACTIVE_FLAG = ‘Y’
AND SYSDATE BETWEEN PU.START_DATE AND NVL(PU.END_DATE,’4712/12/31′)
AND PU.USER_ID = PUR.USER_ID
AND PRD.ROLE_ID = PUR.ROLE_ID
AND PRD.LANGUAGE = ‘US’
ORDER BY PU.USERNAME DESC

Sample Output:

role1 - Security Matrix Users and their Roles

Catalog File: Security_Matrix_-_User_Roles.catalog

Import steps:
a) Login to the instance/Pod.
b) Navigate to Reports and Analytics
c) Click on Browse Catalog and navigate to the desired folder where you want this analytics to be imported.. Ex: My Folders or Custom Folder.
d) Click on the Unarchive button in the left bottom and select the catalog file that you downloaded from this post.
e) The analytics is imported with name “Security Matrix – User Roles” and is ready to use.
f) Click the Open hyperlink to run the analytics. The o/p can be exported using the export option at the end of the o/p (scroll till the end to see this option).

If you have any questions, please feel free to reach out to me by posting in comments section.

If you are interested in learning Fusion Technical tools go through this post

If you liked the article, please share it with your friends/ colleagues/ teammates or anyone who might also benefit from it.

  • I tired of performing the same mentioned above but getting the below error.

    Error
    View Display Error

    Error generating view. Starting with 20A Update, Direct Database Query option in BI Answers is no longer available. You can no longer run Direct Database Query reports. Please create reports with OTBI subject areas or BI Publisher.
    Error Details
    Error Codes: OAMP2OPY

    • Direct database query functionality is deprecated. So we cannot use this catalog file anymore. However you can use the query and extract data into BI Report

  • In visible box by plugintheme