Where is the 'getCapabilityMetadata' Scripted REST Resource referenced in ServiceNow?

matthew_hughes
Kilo Sage

In ServiceNow, I've had to make an amendment to the OOTB Scripted REST Resource 'getCapabilityMetadata' so that it references another Script Include to remove the 'Create sub-capability'  action. However, I don't feel comfortable doing this and would rather make a clone of the Scripted REST Resource.

 

However, I need to know where the Scripted REST Resource 'getCapabilityMetadata' is currently be used or referenced so that I can make the amendments in those areas too to use my clone.

8 REPLIES 8

Please share your use case of excluding specific actions or other customisations being planned. It would help us review it whether it is valid general use cases and applicable for other customers as well. 

 

Yogesh

For any users that have a particular apm role, they should be able to see the 'Create sub Capability' option. If other users don't have that role, they shouldn't be able to see it

Hi, 

 

The user with 'sn_apm.apm_user' role can only access "Create sub Capability'. For example the user with "apm_read" can access the Business Portfolio > Capability Map hierarchy, however doesn't have access to invoke any action such as 'Create sub Capability'. 

 

This will resolve your use case, without any customization. 

 

Yogesh

Hi @yogesh41  Is that defined in the Script Include 'BCHMetaData' or is that defined somewhere else?