SharePoint 2010工作流Active Directory组枚举 [英] SharePoint 2010 Workflow Active Directory Group Enumeration

查看:77
本文介绍了SharePoint 2010工作流Active Directory组枚举的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在通过工作流发送邮件,并希望由特定用户插入列表,例如
user1,用于将邮件发送到特定的AD组,例如TestGroup1.同样,对于user2到userN.
是否可以确定工作流程中的AD组成员身份?

提前致谢,
Naresh.

Hi All,

I am working on sending mail via workflow and would like for list inserts by a particular user, say
user1, to send mail to a particular AD group, say TestGroup1. Similarly, for user2 to userN.
Is it possible to determine AD group membership inside a workflow?

Thnaks in Advance,
Naresh.

推荐答案

简短答案为否.

SharePoint用户与AD用户不同.当然,如果使用Windows身份验证,SharePoint将使用AD来认证Windows用户并建立声明,但是它会创建一个SPUser,其中没有特定于AD的信息.由于您可以具有多种身份验证机制和声明提供程序,因此在SPUser类中拥有特定于一个的信息是没有意义的,对于Microsoft或任何人创建所有可能的对象来说都是不切实际的.

您需要自己查询AD.
Short answer is no.

SharePoint user is not the same as an AD user. Of course, SharePoint, if using Windows auth, uses AD to authenticate the Windows user and establish the claim but it creates a SPUser with no information specific to AD. Since you can have multiple authentication mechanisms and claims providers it doesn''t make sense to have information specific to one in the SPUser class and it would be impractical for Microsoft, or anyone, to create objects for all possibilities.

You will need to query AD yourself.


我是通过在AD中存在的经理组中添加经理的emailId并通过工作流发送邮件来完成此操作的.发送给用户(在列表中添加项目的用户)和该经理的电子邮件ID.
I have done this by adding emailId of manager in manager''s group which exists in AD and sent mail through workflow..so that the mail can sent to user(who adds an item in a list) and that Manager Email ID..


这篇关于SharePoint 2010工作流Active Directory组枚举的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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