How to create a report/dashboard to view groups and roles associated with module/application
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 02:29 PM
We need a report created so that the platform team can quickly view what groups are associated with a module and the roles that group has. This will be easy for them to request correct access based on the job function of the requestor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2024 12:46 AM
Hi @MeghanaJ,
What do you mean by 'what groups are associated with a module'?
In regards to the second part of the question (roles that group has), you can create a simple list report on the [sys_group_has_role] table like the below:
Cheers
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2024 11:49 AM
Thanks!! However one of the team wants a report that would help them add people/new hires to appropriate groups based on their job duties. So what I mean by the module is: If someone is requesting access to say demand Module the report would show which groups have that particular role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-22-2024 12:52 AM
Hi @MeghanaJ ,
Try the below method by creating database view:
Step 1: Create a Database View
Combine relevant data from the sys_user_group, sys_user_has_role, sys_user_role, and your module table.
Navigate to Database Views:
- Go to System Definition > Database Views.
- Click New and name it GroupsRolesModulesView.
Define Relationships: Add and relate the tables using appropriate join conditions. Example SQL:
Adjust table and column names based on your instance's schema.
Step 2: Create the Report
Navigate to Reports:
- Go to Reports > Create New.
Define the Report:
- Name: "Group Roles and Modules Report"
- Type: List
- Data Source: GroupsRolesModulesView
Configure Columns:
- Select columns: group_name, role_name, module_name.
Save and Share:
- Save the report.
- Use the Share option to grant access to the platform team.
- Optionally, schedule the report for regular distribution.
Thanks,
Hope this helps.
If my response proves helpful please mark it helpful and accept it as solution to close this thread.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-02-2024 12:53 PM - edited ‎07-02-2024 01:10 PM
Hi @HrishabhKumar,
Created a database view like you suggested. However when I click on the 'Try it' option on the DB view nothing show up. Here is the query that was used:
SELECT g.name, r.name, m.name FROM g JOIN hr ON hr.user = g.sys_id JOIN r ON r.sys_id = hr.role JOIN m ON m.group = g.sys_id WHERE m.name IS NOT NULL
Can you let me know what is missing or wrong?
Thanks