Hide new button using ACL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 05:50 AM
I have a requirement to hide New button for the employee table in the workspace and the native for employee-manager role users by using ACL.
i have verified acl in the table their is only one create ACL is existed, i made changes on that but it wasn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 06:19 AM
Please ensure that the conditions specified in your ACL are correct and specific to the scenario you're trying to enforce. Double-check that you're targeting the correct roles (employee and employee-manager) and that the conditions are evaluating as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 06:43 AM
Hi @VSN, As per my understading, ACLs are mainly to grant the access to the objects in ServiceNow. You can also hide the new button on list via List Control (Configure > List Control > Omit New button).
Regards,
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 07:01 AM - edited 02-08-2024 07:02 AM
Hello @VSN ,
1.Please confirm the conditions are not matching for the users the specified roles are not alloated to the users.
2. All check if there ia any other ACLs are giving the create access(Possible if user has access to parent table access).
3. You can add condtions in "New" button UI action as per your business requirements.
Example: gs.hasRole('role_name')
Kindly mark the answer ✔️Correct or Helpful ✔️If it addresses your concern.
Regards,
Siddhesh