ACLs should not have GlideRecord/GlideAggregate in script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2021 04:42 AM
ACLs (Security rules) should not have GlideRecord/GlideAggregate in script
We have an ACL written on sys_attachment table and the script is Checking if current user is a member of any human resources group. Gliderecord to 'sys_user_grmember' is used.
Please suggest any alternative other than Gliderecord/GlideAggregate for checking.
- Labels:
-
HR Service Delivery
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2022 06:55 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2022 02:22 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2021 09:45 PM
Hello Renu,
You can achieve this requirement by using below code
**Assuming Group Name = HR Support
answer = gs.getUser().isMemberOf("HR Support");
Please mark helpful and accept the solution if it solves the purpose.