PoweShell将Sharepoint Site Collection组与AD -groups进行比较 [英] PoweShell Compare Sharepoint Site Collection groups with AD -groups
问题描述
大家好,
我正在使用PS脚本来比较当前用户的网站群组,相当于广告用户群。
检查网站组成员是否拥有该组织的广告帐户。 domain \ name。
原因是,我们还使用第三个SSO(okta)和外部用户,并且广告声明的声明ID不同。
如果他们没有AD帐户,我想将其删除。
谢谢
Abenet
您好
以下链接供您参考。
http://www.sharepointdiary.com/2015/10/remove-user-from-sharepoint-group-using-powershell.html
Hi All,
I am working on PS script to compare current user sitegroups has equivalent to Ad-user group.
Check the sitegroups member if it has Ad-account with the org. domain\name.
The reason is that, we also use 3rd SSO (okta) and for external user, and the claim Id is different for Ad-claims.
If they don't have an AD-account I would like to remove them.
Thanks
Abenet
Hi
Below link for your reference.
http://www.sharepointdiary.com/2015/10/remove-user-from-sharepoint-group-using-powershell.html
For a specific group, you can enumerate the users, if a user's loginName not start with 'domain\', then remove it.
这篇关于PoweShell将Sharepoint Site Collection组与AD -groups进行比较的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!