How to Deactivate or Restrict “Add/Remove Approver” buttons in Knowledge Center workspace

SowndharyaM4478
Tera Contributor

In the Knowledge Center workspace, within the Approval tab of an article, there are options available to “Add Approver” and “Remove Approver.” These actions allow users to manually manage approvers for an article.

However, in our current process, approvals are managed through a predefined group, which is responsible for reviewing and approving articles and so these buttons are not required and confusing users.

Is there a option to deactivate or restrict their visibility based on role?

I have already explored Declarative Actions, but did not find any existing OOB configurations applicable to the Knowledge Center scope.

SowndharyaM4478_0-1782490643268.png

 


Thanks
Sowndharya

1 REPLY 1

Tanushree Maiti
Tera Patron

Hi @SowndharyaM4478 

 

Use 

Method1 : Update condition of UI Action

 

  • Navigate to System Definition > UI Actions (or search for UI Actions in the left navigation filter).
  • Search for the UI Actions named Add Approver and Remove Approver that apply to the Knowledge or Approval tables.
  • Update the Condition field to restrict access based on roles. For example, you can hide the button for users who do not have the admin or knowledge manager role by appending the following to the existing 

condition:
&& gs.hasRole('admin') || gs.hasRole('knowledge_manager')

  • Click Update to save the changes.

Method2  : Restrict Access via ACL

 

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti