ACL -Field to be editable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 07:10 AM - edited 10-29-2024 07:13 AM
Hi everyone..
I'm trying to create an ACL.
So we have "Assignment group" field and it needs to be editable to the "Manager" group.
The result was it still not editable to the manager group. Please help me on this . Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 08:00 AM
Hi @Dizy M ,
isMemberOf function does not work in scoped app.
In script use below.
answer=false;
var mem = new GlideRecord("sys_user_grmember");
mem.addQuery("group", 'pass sys_id of your manager group');
mem.addQuery("user", gs.getUserID());
mem.query();
if (mem.next()){
answer=true;
}
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 08:09 AM
Hi @Runjay Patel . I tried this but it's still the same. The user that I impersonated is part of the Manager group.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 08:22 AM
Hi @Dizy M ,
Run the same code in background script and check whether it is going inside if or not.
If it is going then instead of impersonating login with their credential, sometime due to cache issue it happen.
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 07:41 AM
Can you show a screenshot of the ACL, including Role and condition and script.
And also the Group called Manager.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 07:50 AM