I need to write a ACL for read
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-26-2024 10:45 PM
Hi,
I need to write a ACL (Access control list) for giving read access to current logged-in-user if He is manager of any group & Having ITIL role.
Thanks in advanced.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-27-2024 01:59 AM
some minor change required
var validategrpoupManager = Class.create();
validategrpoupManager.prototype = {
validateManager: function() {
var grp = new GlideRecord("sys_user_grpoup");
grp.addQuery("manager", gs.getUserID());
grp.setLimit(1);
grp.query();
return grp.hasNext();
},
type: 'validategrpoupManager'
};
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2024 10:04 PM
Hi @Ankur Bawiskar
If i want to add another condition in same script include, he can see data only if resolved by is a group member where he is the manager.
For Example: If I am current logged in user and I am the manager of X group,Show I can see which record only they resolved by X group's member.
Thank You!