设置hideFromAddressLists或hideFromOutlookClients时为ErrorGroupsAccessDenied [英] ErrorGroupsAccessDenied when setting hideFromAddressLists or hideFromOutlookClients
问题描述
我一直在尝试使用beta API通过图形在组上设置以下值:
I have been trying to set the following values on a group using graph using the beta API:
{
"hideFromOutlookClients": true,
"hideFromAddressLists": true
}
但是,出现以下错误:
{
"code": "ErrorGroupsAccessDenied",
"message": "User does not have permissions to execute this action."
}
该应用程序确实具有更新网上论坛所需的权限,实际上,更新网上论坛的说明就可以了.这两个属性是几个月前添加的,但是它们似乎需要不同的权限.我找不到要分配的任何其他与组"相关的权限.
The application does have the required permissions for updating a Group, in fact, updating a group's description works just fine. These two properties were added a few months back but they seem to require different permission. I cannot find any other "group" related permission to assign.
在此之前,有人使用过这些属性吗?
Has anyone used these properties before that could shed some light on the subject?
推荐答案
我已经测试了您的场景.
I have tested your scene.
要更新"hideFromOutlookClients"和"hideFromAddressLists",我们必须分配Group.ReadWrite.All
委派权限.
To update "hideFromOutlookClients" and "hideFromAddressLists", we have to assign Group.ReadWrite.All
Delegated Permission.
其他两个委派权限Directory.ReadWrite.All
和Directory.AccessAsUser.All
不起作用. (但是这两个权限可用于更新说明")
The other two Delegated Permissions Directory.ReadWrite.All
and Directory.AccessAsUser.All
don't work. (But these two permissions work for updating "description")
Microsoft Graph API的beta版正在不断改进,因此可能存在一些意外问题.
The beta version of Microsoft Graph API is continuously improving, so there may be some unexpected issues.
更新:
您正在使用应用程序"权限,而不是委派"权限.遗憾的是,根据我的测试,当前不支持应用程序权限.您需要分配Group.ReadWrite.All
委派权限并调用此API
You are using Application permissions rather than Delegated permissions. Unfortunately, Application permissions are not supported currently based on my test. You need to assign Group.ReadWrite.All
Delegated Permission and call this API on behalf of a user.
这篇关于设置hideFromAddressLists或hideFromOutlookClients时为ErrorGroupsAccessDenied的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!