ACL -Field to be editable

Dizy M
Tera Expert

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!

 

DizyM_0-1730211205759.png

 

 

DizyM_1-1730210934794.png

 

16 REPLIES 16

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

-------------------------------------------------------------------------

Hi @Runjay Patel  . I tried this but it's still the same. The user that I impersonated is part of the Manager group. 

 

DizyM_0-1730214502425.png

 

 

DizyM_1-1730214551973.png

 

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

-------------------------------------------------------------------------

Can you show a screenshot of the ACL, including Role and condition and script.

And also the Group called Manager.

-Anurag

Hi @Anurag Tripathi  Here's the screenshot

 

DizyM_2-1730213423160.png

 

 

DizyM_3-1730213433448.png