Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Control owners should only be able to see controls which they are owner of

AjvadK
Tera Contributor

I want control owners (entity owners) to have visibility to controls they are owner of. I have granted they sn_grc_business_user_lite role. But now they have visibility to all the controls in the system. What is the best approach to limit their visibility to only controls they are owner of?

2 ACCEPTED SOLUTIONS

Ankur Bawiskar
Tera Patron

@AjvadK 

you can use query business rule.

Example: on incident table I should see only those incidents raised by me, so I will create query BR on incident with this script

current.addQuery('opened_by', gs.getUserID()):

So something similar you can also have if you have owner field as reference to user table on your Controls table

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

View solution in original post

Dhanraj B
Tera Guru

Hi @AjvadK ,

 

You can use simple Before - Query business rule in designated table, something like below.

current.addQuery("owner", gs.getUserID()).

This will allow the users to view only the records they own.

 

-Dhanraj.

View solution in original post

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@AjvadK 

you can use query business rule.

Example: on incident table I should see only those incidents raised by me, so I will create query BR on incident with this script

current.addQuery('opened_by', gs.getUserID()):

So something similar you can also have if you have owner field as reference to user table on your Controls table

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Dhanraj B
Tera Guru

Hi @AjvadK ,

 

You can use simple Before - Query business rule in designated table, something like below.

current.addQuery("owner", gs.getUserID()).

This will allow the users to view only the records they own.

 

-Dhanraj.