Scoped Application: Script to Assign a Role to a User if the User is updated on a Custom Field

NishiU
Tera Contributor

Hello,

 

I have a requirement to assign a role to a user if the user is populated in a custom field. Since this is a scoped application, the end user does not have access to the sys_user_has_role table. Is there an alternative way to assign a role to a user using a script?

 

Thanks!!!

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@NishiU 

you can use a business rule for this

what script did you try and what didn't work?

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