将Azure AD安全组与Office 365组同步 [英] Sync Azure AD Security Group with Office 365 Groups
问题描述
我们计划在Office 365中创建Modern Team站点。因此将自动创建Office 365组。我们需要创建一个逻辑来将Office 365组与Azure AD安全组同步。 Azure AD当前与本地AD同步。
我们的想法是在将新员工添加到本地AD并因此添加到Azure AD安全组时将其添加到Office 365组。同样,如果员工离开公司,即从本地AD组中删除,则需要将其从Office 365组中删除。
是否有Power Shell脚本可以执行此操作?如果没有,我们可以写一个VS / C#代码吗?
提前致谢!
Mayank
您可以将Azure中的O365组修改为动态用户组。然后,您可以使用属性来管理自动组成员资格。
https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-动态成员
We plan to create Modern Team sites in Office 365. So Office 365 Group will automatically be created. We need to create a logic to sync our Office 365 Group with Azure AD Security Group. The Azure AD is currently sync with the local AD.
The idea is to add new employees to Office 365 Group when they get added to local AD and hence to Azure AD Security Group. Similarly, employees need to be removed from Office 365 Groups if they leave the firm i.e. removed from the local AD Group.
Is there a Power Shell Script that can do that? If not, can we write a VS/C# code?
Thanks in advance!
Mayank
You can modify the O365 Group in Azure to be a dynamic user group. You can then use attributes to manage automatic group membership.
https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-dynamic-membership
这篇关于将Azure AD安全组与Office 365组同步的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!