Share via

Graph API claims scope doesn't exist when it appears in explorer

Spencer Tenney 1 Reputation point
2022-05-25T17:44:21.503+00:00

Hello,

I am working on developing an application in Django using MSAL and the Graph API.

I am attempting to make an interface similar to Intune that allows the user to reboot, wipe, and manage devices remotely.

However, when I attempt to log in to my Microsoft account in the application, the Graph API gives this response:

205546-image.png

I'm a bit confused as when I attempt to make the same request through the Graph Explorer, it says it will need the "DeviceManagementManagedDevices.PriviligedOperations.All" permission, but when my app requests it, the API claims the permission does not exist.

Here is the list of scopes my application requests:

205528-image.png

When I remove the aforementioned last one, the application works but is unable to make the API calls to wipe or reboot devices. I'm unsure where to go from here.

Azure
Azure

A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments

2 answers

Sort by: Most helpful
  1. Anonymous
    2022-05-25T20:25:51.297+00:00

    Hi @Spencer Tenney ,"DeviceManagementManagedDevices.PriviligedOperations.All" has been having some issues. Please review this thread for some more information. In that thread they post this thread as a possible solution. I'm not sure if you've seen these already, but if not please take a look and let me know if it works or not. If not I can help you further.

    Thank you,
    James

    Was this answer helpful?

    0 comments No comments

  2. Michael Taylor 61,221 Reputation points
    2022-05-25T20:24:59.823+00:00

    I think you have an extra s on that permission. Here it is DeviceManagementManagedDevices.PriviligedOperation.All. Notice the singular priviliged operation.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.