scirpting

shid077
Tera Contributor

If the user has admin and change manager role then can edit the assignment group and assigned to field or else for another user it is read only.

4 REPLIES 4

Community Alums
Not applicable

Hi @shid077 ,

If anyone has admin role , by default they will be able to edit the assignment group and assigned to field and any other user won't have access anyways.

It is not advised to provide anyone lese to edit the assignment group.

Hello @shid077 

You can create write ACL and in script you can write.

 

if(gs.getUser().hasRole('admin') && (gs.getUser().hasRole('change manager'))

answer=true;

}

 

 

SunilKumar_P
Giga Sage

@shid077, You can try Write ACL on the Assignment group and Assigned to fields to check 'change_manager' role and have Admin override check box as true.

 

answer = gs.hasRole('change_manager') ? true : false;

 

Regards,

Sunil

Satyapriya
Mega Sage

Hi @shid077 ,

You can create Write ACL and provide script in the ACL as 

if(gs.getUser().hasRole('admin') )&& (gs.getUser().hasRole('change_manager')){

answer=true;

}

Please mark it as helpful if it is as helpful