Group Manager should have access to edit members to the group their own in UAT,SIT.

Suresh_32
Tera Expert

Group Manager and Secondary Manager should have access to edit (add/remove) members to the group(s) they own in UAT, SIT & PREPROD (not in PROD & DEV) 

Edit buttton should visible to the group managers and secondary manager in UAT, SIT AND PREPROD not in Dev and Prod instances.

 

Please help me to implement this functionality.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

@Suresh_32 

you can configure the list control and use Omit edit condition script field

check the instance name and show/hide

If that field is not present when you configure list control then confirm the form layout and add that

AnkurBawiskar_0-1738383289798.png

Then use this script in the field

answer = true; // omit it
var instanceName = gs.getProperty('instance_name');

if (instanceName == 'UAT Instance Name' || instanceName == 'SIT Instance Name' || instanceName == 'PREPROD Instance Name') {
    answer = false; // don't omit it
}

AnkurBawiskar_1-1738383496856.png

 

Also ensure manager and secondary manager is able to edit using ACL, refer below link for that and enhance

How to configure Group Members (sys_user_grmember) edit capability, so that only the Group Manager i... 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Suresh_32 

you can configure the list control and use Omit edit condition script field

check the instance name and show/hide

If that field is not present when you configure list control then confirm the form layout and add that

AnkurBawiskar_0-1738383289798.png

Then use this script in the field

answer = true; // omit it
var instanceName = gs.getProperty('instance_name');

if (instanceName == 'UAT Instance Name' || instanceName == 'SIT Instance Name' || instanceName == 'PREPROD Instance Name') {
    answer = false; // don't omit it
}

AnkurBawiskar_1-1738383496856.png

 

Also ensure manager and secondary manager is able to edit using ACL, refer below link for that and enhance

How to configure Group Members (sys_user_grmember) edit capability, so that only the Group Manager i... 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@Suresh_32 

Hope you are doing good.

Did my reply answer your question?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks Ankur. It is working fine with the above solution.

Ankur,

Now Group managers can see the Edit button, but data is not visible in Edit slush bucket. Please see the below screen for your reference. Could you please help me on this issue.

 

Suresh_32_0-1738946874599.png