通过MS图将用户添加到AAD组
我正在尝试使用应用程序许可通过MS Graph API将用户添加到AD组中,并且无法授予GroupMamber.ReadWriteAll许可,因为这将允许应用程序注册将人员添加到任何是安全问题的组中。我的应用程序注册是AAD组的所有者。
任何帮助都非常感谢。
谢谢。
I am trying to add users to the AD Group via MS Graph API using application permission, and can't give GroupMamber.ReadwriteAll permission as this will allow app registration to add people to any group which is a security concern. My app registration is the owner of the AAD group.
Any help is much appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请注意,要通过MS Graph API将用户添加到Azure广告组中,您必须具有以下权限之一,如此 msdoc 。
>在上述权限中,您无法将用户添加到Azure AD组中。
我将应用程序分配为组的所有者,如下所示:
我尝试将用户添加到Azure AD组中,而无需授予上述任何权限,并获得了以下错误:
授予所需的许可后,我能够成功地将用户添加到Azure AD组中如下:
Please note that, to add users to the Azure AD Group via MS Graph API, you must have one of the below permissions as mentioned in this MsDoc.
Without having at least one of the above permissions, you cannot add users to the Azure AD group.
I assigned the app as owner of the group like below:
I tried to add users to the Azure AD group without granting any of the above permissions and got the error like below:
After granting the required permission, I was able to add the user to Azure AD group successfully like below: