Button acces to particular role
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2023 04:26 AM - edited ‎02-17-2023 05:20 AM
In the sys_user table th roles-- > itil roles.
how to do this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2023 04:33 AM
Hi Dev,
In ServiceNow, you can use Access Control Rules (ACRs) to control which users or roles can access certain buttons, fields, and tables. Here's how you can use ACRs to limit the "Set password" button to users with the "sn_customerservice_manager" role:
- Log in to ServiceNow with an account that has administrative privileges.
- Navigate to "System Security" > "Access Control" > "Rules".
- Click "New" to create a new ACR.
- Enter a name for the ACR, such as "Limit Set Password Button to sn_customerservice_manager Role".
- In the "Applies to" field, select "Table" and then select "sys_user" from the dropdown menu.
- Under "Conditions", click "Add Row" to add a new condition.
- Select "Field" and then select "Roles" from the dropdown menu.
- In the next dropdown menu, select "is" and then enter "sn_customerservice_manager" in the field next to it.
- Under "Operations", select "Write" to allow users with the "sn_customerservice_manager" role to write to the "sys_user" table.
- Under "Overrides", select the "Set password" checkbox to allow users with the "sn_customerservice_manager" role to see and use the "Set password" button.
- Click "Submit" to save the ACR.
With this ACR in place, only users with the "sn_customerservice_manager" role will be able to see and use the "Set password" button in the sys_user table.
Please mark correct or helpful if its helping
Thank you
Vijay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-17-2023 05:16 AM
Hi @devservicenow k ,
1. You can set condition on the set password UI action like gs.hasRole('sn_customerservice_manager')
Refer below
ServiceNow Community MVP 2024.
Thanks,
Pavankumar