Getting error while pulling data from Intune using graph API without SPOKE

Aayushi Sharma
Tera Contributor

We have a setup an integration between Intune and ServiceNow using Rest Message (without using Spoke).
We get the authenticated successfully. But when we try to pull the device data, we are getting the following response:

Error Message: Method failed: (/deviceManagement/managedDevices) with code: 401 - Invalid username/password combo

Response: {"error":{"code":"InvalidAuthenticationToken","message":"Access token validation failure. Invalid audience.","innerError":{"date":"2024-01-12T04:26:14","request-id":"f6bf300f-9a4f-4fe6-bb13-e953c5a95c57","client-request-id":"f6bf300f-9a4f-4fe6-bb13-e953c5a95c57"}}}

1 REPLY 1

Saurabh Gupta
Kilo Patron
Kilo Patron

Hi @Aayushi Sharma 

You can check with the azure team if the account they created is having the right access on the resources to access the data from azure.

 

C

If the provided solution meets your needs, kindly consider marking it as helpful and accepting it as the solution. This helps others who may have similar questions.

 


Thanks and Regards,

Saurabh Gupta