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:
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.