Microsoft removed Graph permission "Directory.Write.Restricted"

Muster Felix 0 Reputation points
2025-02-04T14:48:13.96+00:00

Hello,

Microsoft removed Graph permission "Directory.Write.Restricted" without any preannouncement.

We cannot use Update-MgDevice for devices in administrative units any more.

Directory.Write.Restricted available: Microsoft Graph permissions reference - Microsoft Graph | Microsoft Learn (June 2024)

Directory.Write.Restricted not available: Microsoft Graph permissions reference - Microsoft Graph | Microsoft Learn (current)

What is the substitute permission?

Best

Felix

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,954 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Saranya Madhu-MSFT 1,335 Reputation points Microsoft Vendor
    2025-02-05T00:25:57.8533333+00:00

    Hi Muster Felix,

    Thanks for reaching out to Microsoft!

    Microsoft removed the "Directory.Write.Restricted" permission as noted in the changelog under Identity and access | Directory management on September 16, 2024. The previously deprecated permission "Directory.Write.Restricted" was removed from the device resource.

    Permissions required to update devices:

    User's image

    Update devices using Microsoft Graph

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

  2. CarlZhao-MSFT 45,021 Reputation points
    2025-02-05T03:01:11.0533333+00:00

    Hi @Muster Felix

    You can follow the Microsoft Graph Changelog to track any updates to Graph API permissions. I noticed that the "Directory.Write.Restricted" permission for device resources was deprecated on July 31 last year, and then completely removed on September 16.

    As @Saranya mentioned, you can currently use the Directory.AccessAsUser.All (delegated) or Device.ReadWrite.All (application-only) permissions to update devices.

    Hope this helps.

    If the answer is helpful, please click Accept Answer and kindly upvote. If you have any further questions about this answer, please click Comment.

    0 comments No comments

Your answer

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