<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SPUser? SPException!</title>
	<atom:link href="http://tips.naivist.net/2005/10/13/spuser_spexception/feed/" rel="self" type="application/rss+xml" />
	<link>http://tips.naivist.net/2005/10/13/spuser_spexception/</link>
	<description>Kodējot radušās domeles</description>
	<lastBuildDate>Thu, 03 Nov 2011 14:04:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Sharad Sharma</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-5614</link>
		<dc:creator>Sharad Sharma</dc:creator>
		<pubDate>Thu, 08 Feb 2007 08:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-5614</guid>
		<description>&lt;p&gt;Hi all,&lt;/p&gt;

&lt;p&gt;Can we retrieve Sharepoint Site user&#039;s properties (e.g, First, Middle, Last names) from active directory, from within Sharepoint&#039;s aspx page, in the run time.&lt;/p&gt;

&lt;p&gt;Regards
Sharad&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi all,</p>

<p>Can we retrieve Sharepoint Site user&#8217;s properties (e.g, First, Middle, Last names) from active directory, from within Sharepoint&#8217;s aspx page, in the run time.</p>

<p>Regards
Sharad</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Lennin</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-4668</link>
		<dc:creator>Lennin</dc:creator>
		<pubDate>Fri, 01 Dec 2006 11:19:55 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-4668</guid>
		<description>&lt;p&gt;What Eva says is right, you can get the user with SPWeb.AllUsers
but you cannot get any of the roles associated to the group where the user belongs to via SPUser.Roles.    I at least get an empty list and my AD Group is granted an specific role.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>What Eva says is right, you can get the user with SPWeb.AllUsers
but you cannot get any of the roles associated to the group where the user belongs to via SPUser.Roles.    I at least get an empty list and my AD Group is granted an specific role.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Krišs</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-3154</link>
		<dc:creator>Krišs</dc:creator>
		<pubDate>Tue, 17 Oct 2006 15:36:24 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-3154</guid>
		<description>&lt;p&gt;Thanks, Eva!
This is exactly what my colleague told me today (no, really, today) - that all the users that have entered the site (once, twice, doesn&#039;t matter), can be found in that collection. 
Which leads us to thinking that this is a wonderful workaround for a problem that doesn&#039;t exist ;-)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks, Eva!
This is exactly what my colleague told me today (no, really, today) &#8211; that all the users that have entered the site (once, twice, doesn&#8217;t matter), can be found in that collection. 
Which leads us to thinking that this is a wonderful workaround for a problem that doesn&#8217;t exist ;-)</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Eva</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-3152</link>
		<dc:creator>Eva</dc:creator>
		<pubDate>Tue, 17 Oct 2006 14:55:20 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-3152</guid>
		<description>&lt;p&gt;Hello Kriss,
Further to my comment above I&#039;ve found that using spWeb.AllUsers (rather than spWeb.Users) I always see my user (even ones that were added to SharePoint only through a domain group) and your AD lookup code above (which by the way works superbly) is never entered. I thought it worth noting for the next person out there.&lt;/p&gt;

&lt;p&gt;Thank you,
Eva&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello Kriss,
Further to my comment above I&#8217;ve found that using spWeb.AllUsers (rather than spWeb.Users) I always see my user (even ones that were added to SharePoint only through a domain group) and your AD lookup code above (which by the way works superbly) is never entered. I thought it worth noting for the next person out there.</p>

<p>Thank you,
Eva</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Eva</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-3146</link>
		<dc:creator>Eva</dc:creator>
		<pubDate>Tue, 17 Oct 2006 10:36:58 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-3146</guid>
		<description>&lt;p&gt;Hello Kriss,
Thank you very much, your information was precise, the articles are very clear and - just what I needed. :-)&lt;/p&gt;

&lt;p&gt;Thank you,
Eva&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hello Kriss,
Thank you very much, your information was precise, the articles are very clear and &#8211; just what I needed. :-)</p>

<p>Thank you,
Eva</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Krišs Rauhvargers</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-274</link>
		<dc:creator>Krišs Rauhvargers</dc:creator>
		<pubDate>Thu, 11 May 2006 08:37:09 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-274</guid>
		<description>&lt;p&gt;Thiru!
This does not seem to be a case where you could easily use built-in Sharepoint capabilities. Looks like you have to use same custom code.
I suggest you look for custom event handlers on the particular &quot;Events list&quot;.&lt;/p&gt;

&lt;p&gt;br,
Kriss&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Thiru!
This does not seem to be a case where you could easily use built-in Sharepoint capabilities. Looks like you have to use same custom code.
I suggest you look for custom event handlers on the particular &#8220;Events list&#8221;.</p>

<p>br,
Kriss</p>]]></content:encoded>
	</item>
	<item>
		<title>By: SANKAR</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-273</link>
		<dc:creator>SANKAR</dc:creator>
		<pubDate>Thu, 11 May 2006 08:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-273</guid>
		<description>&lt;p&gt;Hi Kriss Rauhvargers....&lt;/p&gt;

&lt;p&gt;Thank you very much. Its working fine. Thanks allot..&lt;/p&gt;

&lt;p&gt;I may ask some doubts regarding sharepoint. Plz help me in the future. &lt;/p&gt;

&lt;p&gt;Byeeee&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;

&lt;p&gt;J.SANKAR&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Kriss Rauhvargers&#8230;.</p>

<p>Thank you very much. Its working fine. Thanks allot..</p>

<p>I may ask some doubts regarding sharepoint. Plz help me in the future. </p>

<p>Byeeee</p>

<p>Regards</p>

<p>J.SANKAR</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Thiru</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-272</link>
		<dc:creator>Thiru</dc:creator>
		<pubDate>Thu, 11 May 2006 07:47:59 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-272</guid>
		<description>&lt;p&gt;Hi,
This is Thiru, doing project in Sharepoint site, in that i need to send “Events List” as “Mail” to others. i added events by the help of default “Calendar
Control” in SPS site, but i cant send events to multiple mail-id’s. I
tried “Alert Me” option but in that i can send event as single mail-id
only. so, i need look and feel could be sending mail to different
groups and multiple mail-id’s.
plz….anyone give me suggestion about this problem.
Thank you,&lt;/p&gt;

&lt;p&gt;Cheers,
Thiru&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,
This is Thiru, doing project in Sharepoint site, in that i need to send “Events List” as “Mail” to others. i added events by the help of default “Calendar
Control” in SPS site, but i cant send events to multiple mail-id’s. I
tried “Alert Me” option but in that i can send event as single mail-id
only. so, i need look and feel could be sending mail to different
groups and multiple mail-id’s.
plz….anyone give me suggestion about this problem.
Thank you,</p>

<p>Cheers,
Thiru</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Krišs Rauhvargers</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-270</link>
		<dc:creator>Krišs Rauhvargers</dc:creator>
		<pubDate>Thu, 11 May 2006 04:15:48 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-270</guid>
		<description>&lt;p&gt;One thing, I think this line is wrong then:&lt;/p&gt;

&lt;p&gt;If IsUserMember(&quot;SPS\primary&quot;, &quot;SPS\sankar&quot;) Then&lt;/p&gt;

&lt;p&gt;should be&lt;/p&gt;

&lt;p&gt;If IsUserMember(&quot;SPS\sankar&quot;, &quot;SPS\primary&quot;) Then&lt;/p&gt;

&lt;p&gt;&#039;cause user name is the first argument, group name - the second one.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>One thing, I think this line is wrong then:</p>

<p>If IsUserMember(&#8220;SPS\primary&#8221;, &#8220;SPS\sankar&#8221;) Then</p>

<p>should be</p>

<p>If IsUserMember(&#8220;SPS\sankar&#8221;, &#8220;SPS\primary&#8221;) Then</p>

<p>&#8217;cause user name is the first argument, group name &#8211; the second one.</p>]]></content:encoded>
	</item>
	<item>
		<title>By: SANKAR</title>
		<link>http://tips.naivist.net/2005/10/13/spuser_spexception/comment-page-1/#comment-269</link>
		<dc:creator>SANKAR</dc:creator>
		<pubDate>Thu, 11 May 2006 02:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://naivist.net/tips/index.php/2005/10/13/spuser-spexception/#comment-269</guid>
		<description>&lt;p&gt;Hi I tried. But its not working. I will explain what i did. I am accessing SPS site through SPS server. I created the AD group called &quot;primary&quot; in the SPS server and i mapped to SPS site. The domain is &quot;SPS&quot; and group name is &quot;primary&quot;. So my group is appearing as &quot;SPS\primary&quot;. The members in that group are SPS\sankar, SPS\thiru, etc.. 
I have used your code in the web part to check whether the user is available inside the group or not. Can you check the code in this link 
http://sankar83.8k.com/share.htm&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;

&lt;p&gt;Regards&lt;/p&gt;

&lt;p&gt;SANKAR&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi I tried. But its not working. I will explain what i did. I am accessing SPS site through SPS server. I created the AD group called &#8220;primary&#8221; in the SPS server and i mapped to SPS site. The domain is &#8220;SPS&#8221; and group name is &#8220;primary&#8221;. So my group is appearing as &#8220;SPS\primary&#8221;. The members in that group are SPS\sankar, SPS\thiru, etc.. 
I have used your code in the web part to check whether the user is available inside the group or not. Can you check the code in this link 
<a href="http://sankar83.8k.com/share.htm" rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/sankar83.8k.com/share.htm?referer=');">http://sankar83.8k.com/share.htm</a></p>

<p>Thanks</p>

<p>Regards</p>

<p>SANKAR</p>]]></content:encoded>
	</item>
</channel>
</rss>

