Microsoft Graph:无法使用User.ReadWrite范围更新BusinessPhone值 [英] Microsoft Graph : Unable to Update BusinessPhone Value using User.ReadWrite Scope
问题描述
我正在尝试使用范围"User.ReadWrite"更新"BusinessPhone"的值,但是我收到错误消息权限不足,无法完成操作". 但是我能够更新MobilePhone的价值. 我正在使用Microsoft Graph.
i'm trying to update the value for "BusinessPhone" using the scope "User.ReadWrite" but i'm receiving the error message " Insufficient privileges to complete the operation". However i'm able to update MobilePhone value. I'm using Microsoft Graph.
推荐答案
我可以重现您的方案,似乎User.ReadWrite权限不足以更新BusinessPhone属性.您可以添加Directory.AccessAsUser.All
权限,该权限在测试后可以使用:
I could reproduce your scenario , seems User.ReadWrite permission not enough to update BusinessPhone property . You could add Directory.AccessAsUser.All
permission which works after testing :
Directory.AccessAsUser.All
需要管理员同意,您可以使用管理员帐户登录,然后单击Grant Permissions
按钮,如上面的屏幕截图所示.
Directory.AccessAsUser.All
need admin consent , you could login with your admin account and click Grant Permissions
button as shown in above screenshot .
然后,使用身份验证过程并获取令牌,检查scp
范围是否在访问令牌的scp
声明中,您可以使用在线工具以对令牌进行解码.如果存在,请再次尝试使用该令牌更新BusinessPhone属性.
After that , use your authentication process and get the token , check whether Directory.AccessAsUser.All
scope exists in scp
claim of access token , you could use online tool to decode token . If exists , try again to update BusinessPhone property with that token .
请告诉我是否有帮助.
这篇关于Microsoft Graph:无法使用User.ReadWrite范围更新BusinessPhone值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!