通过MS图将用户添加到AAD组

发布于 2025-02-13 08:08:43 字数 154 浏览 0 评论 0原文

我正在尝试使用应用程序许可通过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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

剪不断理还乱 2025-02-20 08:08:44

请注意,要通过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.

enter image description here

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:

enter image description here

I tried to add users to the Azure AD group without granting any of the above permissions and got the error like below:

enter image description here

After granting the required permission, I was able to add the user to Azure AD group successfully like below:

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文