Microsoft removed Graph permission "Directory.Write.Restricted"

Muster Felix 20 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: https://learn.microsoft.com/en-us/graph/permissions-reference (current)

What is the substitute permission?

Best

Felix

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Saranya Madhu-MSFT 2,375 Reputation points Microsoft External Staff
    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.

    1 person found this answer helpful.

  2. CarlZhao-MSFT 46,426 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

  3. Muster Felix 20 Reputation points
    2026-01-28T12:31:22.4333333+00:00

    Switched from RMAU to AU solves not the problem but solved it for me ...

    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.