- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 02:00 AM - edited 08-25-2023 09:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 09:00 AM
ServiceNow works differently. Instead of thinking to restrict the user from accessing some functionality, please add the respective roles to UI action who needs to access it. It will automatically restrict access for all other users.
1. On UI action, at the bottom, please check for the roles section and add roles there.
2. Another way is, you can add gs.hasRole("role_name"); code in Condition section of Ui action. But many times this section has some script include. So better to with the first solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 02:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 09:00 AM
ServiceNow works differently. Instead of thinking to restrict the user from accessing some functionality, please add the respective roles to UI action who needs to access it. It will automatically restrict access for all other users.
1. On UI action, at the bottom, please check for the roles section and add roles there.
2. Another way is, you can add gs.hasRole("role_name"); code in Condition section of Ui action. But many times this section has some script include. So better to with the first solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-25-2023 09:01 AM
Thank you.