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:19 AM
Can you check if there is something else that might be causing the field to be non editable , like a ui policy or client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 08:24 AM
Hi @Anurag Tripathi . We have this existing Client Script (onload) that made the assignment group field non editable... Should we remove that and create ACL (read)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 08:26 AM
First test whether that is the issue or not, disable that and only let the write acl be on. And then see if if works as expected.
I'm positive this is it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2024 08:27 AM
@Dizy M ,
Yes, off course, either you have to run client script or acl. Better do with ACL.
-------------------------------------------------------------------------
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:47 AM
Hello @Dizy M :
This happens when you're in scoped application.
Modify the same ACL like below
1. Remove the role from the list.
2. Remove condition.
3. Go to script section and write code as below. Call a global scriptinclude which should be accessisble from all applications!
answer = new global.ScriptIncludeName().functionName(current);
4. In the script include return as below.
functionName : function() {
return gs.getUser().isMemberOf(current.assignment_group);
}
Modify the code as per your design.
Hope this helps!
Please Accept the solution and hit thumbs up 👍 if it resolves your issue.
Thanks
Kiran