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

后端 未结 2 1597
小蘑菇
小蘑菇 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.

提交回复
热议问题