You find all the common frequently asked questions related to adding ServiceNow as a data source in this topic.

How to Assign Privileges to a Role in ServiceNow for adding in vRealize Network Insight?

  1. Create a Role in ServiceNow UI.
  2. Click System Administrator > Elevate Roles > security_admin > OK.
  3. Go to Access Control (ACL), and click New.
  4. For API access, do the following:
    Option Action
    Type Select REST_Endpoint from the drop-down menu.
    Operation Select execute from the drop-down menu.
    Name From the drop-down menu select the API entry that you want to add. For list of APIs, see Add a ServiceNow Account topic.
  5. For tables, do the following:
    Option Action
    Type Select record from the drop-down menu.
    Operation Select read from the drop-down menu.
    Name From the first drop-down menu, select the table entry that you want to add. From the second drop-down menu, select None. For list of tables, see Add a ServiceNow Account topic.
  6. In the Requires role table, select the role you want to add the access control.
  7. Click Submit.

Do I need to Add all the APIs/Tables Mentioned in the Add a ServiceNow Account Topic?

To run application discovery every 30 minutes, you must provide all the required privileges. However, if you have access to the following table, you can add the data source in vRealize Network Insight and VALIDATE:

APIs Table Permission Type
/stats.do -- Required
/api/now/v1/cimodel/cmdb_ci/fullclasshierarchy -- Required
/api/now/v2/table/cmdb_rel_type cmdb_rel_type Required
/api/now/v2/table/cmdb_ci cmdb_ci Required
/api/now/v2/table/cmdb_ci_service_discovered cmdb_ci_service_discovered Required
/api/now/v2/table/cmdb_rel_ci cmdb_rel_ci Required

vRealize Network Insight validates the required privileges and shows any missing privileges as an error. You can check the missing privileges, and then get access to the missing privileges and VALIDATE again.

Not able to find /api/now/v1/cimodel/cmdb_ci/fullclasshierarchy in ServiceNow Access Control (ACL), How to add the API in ServiceNow ACL?

  1. Create a Role in ServiceNow UI.
  2. Click System Administrator > Elevate Roles > Security Admin > OK.
  3. Go to Access Control (ACL), and click New.
  4. For API access, do the following:
    Option Action
    Type Select REST_Endpoint from the drop-down menu.
    Operation Select execute from the drop-down menu.
    Name In the first drop-down menu enter CMBD Model API Read. From the second drop-down menu, select None.
  5. In the Requires role table, select the role you want to add the access control.
  6. Click Submit.

How to make any role read-only in ServiceNow?

To make a role read-only, you must assign snc_read_only to the role. For details, see Read-only role topic in ServiceNow Documentation.

I have all the necessary privileges, still I am getting Missing privileges message, what to do?

In some of the tables you must add another ACL with the same table to provide access to all the attributes by selecting * form the second Name drop-down menu. Also, ensure you have both the ACLs in the system to get the necessary privileges.