我们如何知道特定用户属于Sharepoint 2010中特定的Active Directory组? [英] How can we know that particular user belongs to particular group of Active Directory in Sharepoint 2010?

查看:68
本文介绍了我们如何知道特定用户属于Sharepoint 2010中特定的Active Directory组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

Iam正在通过工作流发送邮件,所以我的要求就像我有2个Managers组
假设存在Active Directory中的"TestGroup1"和"TestGroup2"以及"TestGroup1"下的3个用户(user1,user2,user3)
和TestGroup2中的4个用户(user4,user5,user6,user7)


我的问题是,如何在sharepoint 2010中拥有TestGroups,以及如果user1插入项目
在列表中,邮件必须转到特定的测试组帐户..

因此,在这里我如何知道我的sharepoint 2010环境中的user1属于TestGroup1
以及如何区分特定用户属于SharePoint 2010中的TestGroup1或TestGroup2的用户.

谁能帮我

在此先感谢,
Naresh.

Hi All,

Iam working on sending a Mail through workflow,so my requirement is like i have 2 Managers group
lets say "TestGroup1" and "TestGroup2" which exists in Active directory with the 3 users(user1,user2,user3) under that "TestGroup1"
and 4 users(user4,user5,user6,user7) in TestGroup2


My question is how can we have that TestGroups in sharepoint 2010 and if user1 inserts a item
in a list the mail has to go to Particular Testgroup Account..

so,here how can i know that user1 belongs to TestGroup1 in my sharepoint 2010 environment
and how can i differentiate the users that particular user belongs to TestGroup1 or TestGroup2 in sharepoint 2010.

Can anyone help me

Thanks in Advance,
Naresh.

推荐答案

获取用户所属的组的集合.

SPUser.Groups属性 [
Gets the collection of groups of which the user is a member.

SPUser.Groups Property[^]

Sometimes it helps to read the documentation


这篇关于我们如何知道特定用户属于Sharepoint 2010中特定的Active Directory组?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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