Service Graph Connector for Intune 401 error

jw9
Tera Contributor

Hi,

I have tried to set up the Service Graph Connector for Intune.

The Intune admin set up the application in Intune with Application Permissions and DeviceManagementManagedDevices.Read.All.

 

I added the Client ID, Client Secret and Token ID (URL) in the OAuth Provider which comes with the integration installed and left everything else as default.

 

When trying to connect i get the following error: Error: Unable to make a connection to Intune via Graph API call. Please check your credential configuration. Check system log for more details. HTTP return status code was 401

 

Is this just a question of incorrect client secret or could there be something else I'm missing?

 

I'm able to retrieve an Oauth token by manually clicking "Get oauth token" in the connection form.

 

UPDATE: Just requested a new Client Secret and still got the following error:

org.mozilla.javascript.JavaScriptException: Error: Unable to make a connection to Intune via Graph API call. Please check your credential configuration. Check system log for more details.

 

Actual Error: Request not sent to uri= https://graph.microsoft.com/beta/deviceManagement/managedDevices?filter=deviceType+eq+%27android%27+or+deviceType+eq+%27iPad%27+or+deviceType+eq+%27iPhone%27+or+deviceType+eq+%27androidForWork%27+or+deviceType+eq+%27androidEnterprise%27+or+deviceType+eq+%27nokia%27+or+deviceType+eq+%27windowsPhone%27+or+deviceType+eq+%27blackberry%27+or+deviceType+eq+%27palm%27 : java.net.SocketTimeoutException: connect timed out

1 ACCEPTED SOLUTION

Looking at this now: https://community.servicenow.com/community?id=community_blog&sys_id=a405ef9bdbbd7018bb4a474d13961903

Might have some tips, especially that InTune permission requirements:

- After registering an application, the following minimum permissions are required for the Graph API to read devices and applications from Intune:

  • Read Microsoft Intune Devices        - DeviceManagementManagedDevices.Read.All
  • Read Microsoft Intune Applications  - DeviceManagementApps.Read.All

View solution in original post

8 REPLIES 8

Rahul Priyadars
Tera Sage

Just to start with..

Are you able to access MSINTUNE from Mid Server?

There is a step - In the Configure MID Server section, select Configure and complete the following steps:

  1. Select the Use MID server check box.
  2. Click Update to save the record.

Regards

RP

Hi Rahul,

 

Yes, I have added the MID Server under the HTTP(s) Connection form.

 

Not sure what you mean by accessing MS intune from the Mid server?

 

Regards,

Jonas

Just checking from Mid Server - Just like we login to Service Now...

Is it possible to TEST the same for Intune System - But Browser session on Mid Server

Regards

RP

amitpol
Tera Contributor

@jw Did you find any solution?I am also facing same issue in Service Graph Connector for Intune

org.mozilla.javascript.JavaScriptException: Error: Unable to make a connection to Intune via Graph API call. Please check your credential configuration. Check system log for more details. (sys_data_source.79c398657714201039252344681061e0.data_loader; line 30)