Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Changing the current Role name affects anywhere

Paul125
Kilo Guru

Hi, I have a role created years back and it's being used in many places, now I would like to change the role name, will it affect anywhere? Thanks.

1 ACCEPTED SOLUTION

Dubz
Mega Sage

You'll have to update any scripts that are referencing it like: if(user.hasRole('your_role_name')). Also, some filter conditions might define it with a string field rather than reference so they'll need to be changed.

I would advise you to keep it as it is unless there is a real business requirement to make the change.

View solution in original post

4 REPLIES 4

Dubz
Mega Sage

You'll have to update any scripts that are referencing it like: if(user.hasRole('your_role_name')). Also, some filter conditions might define it with a string field rather than reference so they'll need to be changed.

I would advise you to keep it as it is unless there is a real business requirement to make the change.

Great! Thanks.

apoorva_tewari
Mega Guru

Yes agreed with David you can also check system properties if that assignment group is mentioned.

Thanks for the reply, sure.