Service Graph connector app for ServiceNow error - API KEy

Solved
arielgritti
Here to help

Service Graph connector app for ServiceNow error - API KEy

Hi community,

 

We're trying to configure the Service Graph connector app for ServiceNow.

Our Meraki admin has created the API KEY.

We've created credentials (using the API KEY) and connections.

When we try to test the data source import, an error is raised:

Error in MerakiGetOrganization - orgStream: API Key missing access to organizations: 999999 (it's a fake number, here is our Organization ID; we're using initially only 1 organization).

 

Our Meraki admin told me the API KEY have at least read access to this organization.

Any idea?

 

I've created a ServiceNow case too.

Thanks,

Ariel

1 Accepted Solution
arielgritti
Here to help

Hi all,

 

Finally, the issue was the whitelist in the Meraki dashboard. We wrongly whitelisted "inbound" ServiceNow IPs instead of whitelisting "outbound" ServiceNow IP range. Doing that, the Service Graph Connector for Meraki has started working fine.

 

Thanks @shwetaP for your help to fix it pointing us in the right direction.

View solution in original post

10 Replies 10
alemabrahao
Kind of a big deal
Kind of a big deal

Hi, check this article.

 

 

https://developer.cisco.com/meraki/build/servicenowsupport/#unable-to-receive-alert

I am not a Cisco Meraki employee. My suggestions are based on documentation of Meraki best practices and day-to-day experience.

Please, if this post was useful, leave your kudos and mark it as solved.
arielgritti
Here to help

Hi @alemabrahao 

I'll take a look and back with you.

Thanks,

Ariel

GreenMan
Meraki Employee
Meraki Employee

Have you tried using the same API key to make some basic calls using something simple like Postman?

arielgritti
Here to help

Hi @GreenMan 

I was thinking about it just a few minutes ago.

Let me try to validate if the API Key is working fine.

 

Thanks,

Ariel

arielgritti
Here to help

Hi @GreenMan 

Finally, it worked from Postman.

Reading Meraki API documentation, I found this: The name to use is: "X-Cisco-Meraki-API-Key" in the Authorization for the API KEY value, and the URL is: https://api.meraki.com/api/v1/

 

arielgritti_0-1692961060694.png

 

GreenMan
Meraki Employee
Meraki Employee

Also:    does ServiceNow integration maybe require something beyond read-only permissions?

arielgritti
Here to help

I'm following (really our Meraki admin is following) this doc from Cisco Meraki app published in the ServiceNow store: https://developer.cisco.com/meraki/build/servicenowservice-graph-connector-for-meraki/

 

Here you can see this:

arielgritti_0-1692902767111.png

 

And this

arielgritti_0-1692904959394.png

 

I don't have admin access to Meraki Dashboard. I can't validate how the API KEY was created and what role or permissions it has. I'm asking our Meraki admin.

 

Following the document, I saw this: https://developer.cisco.com/meraki/api-v1/get-organizations/ to do a test.

In our configuration we have: https://api.meraki.com/api/v1 I believe we have a typo there. I changed to https://api.meraki.com/api-v1 and I'm retesting it.

 

 

arielgritti
Here to help

Using the API KEY in Postman 

Status 200 OK

And I have that answer for https://api.meraki.com/api-v1/get-organizations

 

arielgritti_0-1692903306706.png

 

arielgritti
Here to help

The Meraki doc is saying to use this URL: https://api.meraki.com/api/v1

 

arielgritti_1-1692905032319.png

 

arielgritti
Here to help

Hi all,

 

Finally, the issue was the whitelist in the Meraki dashboard. We wrongly whitelisted "inbound" ServiceNow IPs instead of whitelisting "outbound" ServiceNow IP range. Doing that, the Service Graph Connector for Meraki has started working fine.

 

Thanks @shwetaP for your help to fix it pointing us in the right direction.

Get notified when there are additional replies to this discussion.