Failed to update user profile with Microsoft Graph API via REST API

后端 未结 2 1605
小蘑菇
小蘑菇 2021-01-15 09:33

I\'m trying to update user profile via Microsoft Graph API by a server side (Java) application without user consent. I have an app in MS Azure which has the following \"

相关标签:
2条回答
  • 2021-01-15 10:11

    Microsoft Graph has currently some limitations on operations at Users and Groups depending on the permission type. According to the site Known issues, you can find out that there is a limitation: Cannot perform any CRUD operations on User other than updating user HD photo and extended profile properties for both Delegated and Application permission types.

    Selecting Directory.ReadWrite.All permission (Read and write directory data in the new Azure portal), as indicated in Alternative column in the table in Microsoft Graph permissions section, should solve the problem.

    0 讨论(0)
  • 2021-01-15 10:34

    I also could reproduce this issue too.

    Based on the test, the issue is relative to the specific filed(aboutMe) we were updating. And the patch user API works well for me when I update the jobTitle using the Directory.ReadWrite.All.

    If you want the Microsoft Graph to support updating the aboutMe field, you can submit the feedback from here.

    0 讨论(0)
提交回复
热议问题