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

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 610

#2
Haque Profile Picture

Haque 317

#3
WarrenBelz Profile Picture

WarrenBelz 315 Most Valuable Professional

Last 30 days Overall leaderboard