- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.
