
Announcements
First time creating a custom connector...
I've registered an app on the Azure portal to read data from Intune using Graph. The app has the permission DeviceManagementManagedDevices.Read.All
I've been able to retrieve information in Postman using the client credentials flow from: https://graph.microsoft.com/v1.0/deviceManagement/managedDevices?$filter=serialNumber eq '{{LAPTOP_SERIAL}}'
When I set up a custom connector to do this, and I run the test in step 5 of the custom connector wizard, I get this error:
{
"error": {
"code": "Forbidden",
"message": "{\r\n \"_version\": 3,\r\n \"Message\": \"Application is not authorized to perform this operation. Application must have one of the following scopes: DeviceManagementManagedDevices.Read.All, DeviceManagementManagedDevices.ReadWrite.All - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 0db33608-f917-47fa-a354-9455c6b9275b - Url: https://fef.msub01.manage.microsoft.com/DeviceFE/StatelessDeviceFEService/deviceManagement/managedDevices?api-version=2021-04-07&$filter=serialNumber+eq+%{{LAPTOP_SERIAL}}%27\",\r\n \"CustomApiErrorPhrase\": \"\",\r\n \"RetryAfter\": null,\r\n \"ErrorSourceService\": \"\",\r\n \"HttpHeaders\": \"{}\"\r\n}",
"innerError": {
"date": "2022-02-16T13:25:41",
"request-id": "0db33608-f917-47fa-a354-9455c6b9275b",
"client-request-id": "0db33608-f917-47fa-a354-9455c6b9275b"
}
}
}
Why does it work in Postman and not in the custom connector? client id and secret are the same across both.
Thank you for the replies!
Things got really busy. I will try these out as soon as I am able.