Scoped Application: Script to Assign a Role to a User if the User is updated on a Custom Field
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 10:24 AM
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2025 07:30 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader