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

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @PlatformPadawan 

The reason is that you need to add the "where" clause for the other tables as well.

 

 

*************************************************************************************************************
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]

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

Not familiar with queries too much, which is why I left some of them blank. What would you suggest I put for the where clauses for the other tables? 

Hi @PlatformPadawan 

So, you want to see how many users have a specific role? If yes, then there's no need to create a DB view. You can simply create a report on the Role table.

Please share your exact use case, and I'll be happy to assist you further.

*************************************************************************************************************
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]

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

At minimum, I need a report to show certain tables and users who have access to those tables