web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / MS Graph error "Forbid...
Power Apps
Unanswered

MS Graph error "Forbidden: Application is not authorized to perform this operation"

(0) ShareShare
ReportReport
Posted on by 2

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.

Categories:
I have the same question (0)
  • JD11 Profile Picture
    2 on at

    Thank you for the replies!

    Things got really busy. I will try these out as soon as I am able.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard