- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-19-2021 10:25 AM
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2021 04:05 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2021 07:07 PM
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:
- Select the Use MID server check box.
- Click Update to save the record.
Regards
RP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2021 12:26 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-21-2021 08:39 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2021 03:12 AM
@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)