I need to write a ACL for read

Chandra18
Mega Sage

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.

6 REPLIES 6

@Chandra18 

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.

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

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!