PoweShell将Sharepoint Site Collection组与AD -groups进行比较 [英] PoweShell Compare Sharepoint Site Collection groups with AD -groups

查看:96
本文介绍了PoweShell将Sharepoint Site Collection组与AD -groups进行比较的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在使用PS脚本来比较当前用户的网站群组,相当于广告用户群。 


检查网站组成员是否拥有该组织的广告帐户。 domain \ name。


原因是,我们还使用第三个SSO(okta)和外部用户,并且广告声明的声明ID不同。


如果他们没有AD帐户,我想将其删除。 



谢谢 




Abenet

解决方案

您好


以下链接供您参考。


http://www.sharepointdiary.com/2015/10/remove-user-from-sharepoint-group-using-powershell.html


对于特定组,您可以枚举用户,如果用户的loginName不以"domain \"开头,则将其删除。


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆