Database view to show tables and users who have access to them

PlatformPadawan
Tera Contributor

Hi all, 

 

I'm attempting to create a database view to only show certain tables and users who have access to them. I'm currently not able to bring back any data from the tables in my database view. Any help or direction would be appreciated

PlatformPadawan_0-1741011478777.png

 

 

7 REPLIES 7

Hi @PlatformPadawan 

Technically, a user can see a table if they have the required role. So, you first need to find out which role you're looking for. Then, go to the role, and you can see the modules as a related list that will tell you which modules a user with that role can access.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@PlatformPadawan 

I don't think it's a valid business requirement.

Database views can be exposed as reports on dashboards but what value it adds?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

AndersBGS
Tera Patron
Tera Patron

Hi @PlatformPadawan ,

 

First of all, as @Dr Atul G- LNG have mentioned, you need to investigate with roles does provide access to these tables? Secondly, when you have this figured out, you can just look in the sys_user_has_role list.

 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/