从SharePoint Group中添加AD Group中的用户 [英] Get Users from AD Group added in SharePoint Group
问题描述
您好,
我在SharePoint Online 2013(Office 365)中工作,客户端希望在SharePoint组中添加AD组。客户端AD既是内部部署,也是Exchange(在线)。例如 - 有一个AD组 - ABC有3个用户。此AD组在SharePoint
组中添加了 - 网站会员。
I am working in SharePoint Online 2013 (Office 365) and client wants to add AD groups in SharePoint Groups. The client AD is both on-premise and on Exchange (Online). For E.g. - There is a AD group - ABC having 3 users. This AD group added in SharePoint Group - Site Members.
要求 - 我希望获得AD组中的所有成员(在SP组中添加)。
Requirement - I want to get all members which are there in AD group (added in SP group).
我试过所有类型的客户端对象模型 - JSOM,Rest API。它们都提供用户的组集合,并在用户单独添加时给予用户,而不是AD组用户。
I have tried all types of Client Object Model - JSOM, Rest API. They all give group collection of the user and give users when they are individually added, and not the AD group users.
我尝试的其他选项 - PowerShell,WCF服务 - 但都是徒劳的。尝试使用WCF服务直接命中AD但不确定。
Other options I tried - PowerShell, WCF Service - but all in vain. Tried directly hitting the AD using WCF service but not sure.
如果有任何解决方案可以从SharePoint Online中添加到SP组中的AD组中获取用户,请告诉我。
Please let me know if there is any solution to get users from a AD group which is added in SP group in SharePoint Online.
推荐答案
Hi Vipul,
Hi Vipul,
在SharePoint中如果添加AD组,则SharePoint将考虑AD组作为单个用户而不是组。因此,在添加SharePoint组后,您将无法从组中获取用户。
In SharePoint If you add AD group then SharePoint will consider AD group as a single user instead of group. So you will not able to get user from group after adding in SharePoint groups.
谢谢,
Kaushal Khamar
Thanks,
Kaushal Khamar
这篇关于从SharePoint Group中添加AD Group中的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!