the logged-in user is a member of groups name contains "Nxt". allow to assign INC
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2025 11:28 PM
Hi All.
How can we achieve this trough ACL.
Please provide the some script to achieve this requirement.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2025 11:46 PM
Hi @varma2
Instead of using ACLs, try implementing this with a Before Business Rule using the abort method.
Trigger the business rule when the assignment group changes to any of these groups AP-NTT-PS-Support , SAP-T-APO-Support , SAP-N-MII-Support
var userID = gs.getUserID();
var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', userID);
gr.addQuery('group.name', 'CONTAINS', 'nxt');
gr.query();
if (gr.hasNext()) {
gs.info('User is part of a group with "nxt" in the name.');
} else {
gs.info('User is NOT part of any group with "nxt" in the name.');
//Use abort method here
}
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-15-2025 11:55 PM
HI @J Siva
I have used below script in acl but its not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 12:29 AM
@varma2 I don't think you can acheive this using ACL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 12:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-16-2025 01:06 AM
@varma2 As i mentioned try using the before business rule instead of ACL.
Whenever the assigned group changes to any of those three groups, trigger the business rule.
Then chcek if the loggedin user is part of the nxt group. Based on the validation either abort or allow the operation.