We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Demand screen

Sonali01
Tera Contributor

How to Adjust ACLs to allow only users in the SN_Demand Admins group to see/or modify the Demand Parent field.

Ensure that, at a minumum, only those users in the SN_Demand Admins group can modify the new field.

It would be best if the field was hidden if the user is not in the SN_Demand Admins group.

Thanks in advance.

2 REPLIES 2

AshishKM
Kilo Patron

Hi @Sonali01 , 

Apply ( or update ) the write ACL on table ( dmn_demand ) for column parent. 

in the script section, check the group membership

 

gs.getUser().isMemberOf('SYSID of SN_Demand Admin');

For hiding the same field on form, apply the client script.

 

-Thanks,

AshishKM 


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Harish KM
Kilo Patron

Hi @Sonali01 Assuming the group has a demand role to access. you can create a new Write ACL on Parent field

tablename.parentfield

roles: demand role

script:

if(gs.getUser().isMemberOf('Group Name')

{

answer = true;

}

else

{

answer = false


}

Regards
Harish