<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: MOSS: Add user to site through code (programmatically)</title>
	<atom:link href="http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/feed/" rel="self" type="application/rss+xml" />
	<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/</link>
	<description>Bits and Bytes of SharePoint / MOSS</description>
	<lastBuildDate>Fri, 23 Oct 2009 21:28:43 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: sandrar</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-597</link>
		<dc:creator>sandrar</dc:creator>
		<pubDate>Thu, 10 Sep 2009 21:03:32 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-597</guid>
		<description>Hi! I was surfing and found your blog post... nice! I love your blog.  :) Cheers! Sandra. R.</description>
		<content:encoded><![CDATA[<p>Hi! I was surfing and found your blog post&#8230; nice! I love your blog.  <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Cheers! Sandra. R.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manoj</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-505</link>
		<dc:creator>Manoj</dc:creator>
		<pubDate>Wed, 08 Apr 2009 07:37:19 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-505</guid>
		<description>Hi Farhan,

I have default site with NTLM authentication &amp; extended it for internet. The extended site has FBA. FBA is working fine &amp; implemented similar functionality like Web Site Administration Tool in MOSS site. Now i can create and manage users &amp; roles  from the extended site.
created membership as AspNetSqlProvider_membership &amp; rolemanager as AspNetSqlProvider_role.

i am able the  populate the dropdown list with sub-sites as per the permission of the user but has another problem.  

i am created users &amp; roles. Added the users into the respected roles and added the roles into Sharepoint groups.
Like sharepoint site: zccp, user: kate.jog ,role: zccp-admin and share point group: zccp-owners (has full control).
kate.jog has zccp-admin role. Added zccp-admin role  into  zccp-owners group of zccp site.

in this way i don&#039;t want to add users directely into sharepoint site group, instead added the users first into roles &amp; then added the roles into the share point group. everything is working but problem is that if i want to set target audience , i m not getting the role name.
if i set target audience as the sharepoint group then it is working for the users directly added into the group. But not working for the users belonging to the roles. 
If you can solve the problem , it will be great help to me.

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Farhan,</p>
<p>I have default site with NTLM authentication &amp; extended it for internet. The extended site has FBA. FBA is working fine &amp; implemented similar functionality like Web Site Administration Tool in MOSS site. Now i can create and manage users &amp; roles  from the extended site.<br />
created membership as AspNetSqlProvider_membership &amp; rolemanager as AspNetSqlProvider_role.</p>
<p>i am able the  populate the dropdown list with sub-sites as per the permission of the user but has another problem.  </p>
<p>i am created users &amp; roles. Added the users into the respected roles and added the roles into Sharepoint groups.<br />
Like sharepoint site: zccp, user: kate.jog ,role: zccp-admin and share point group: zccp-owners (has full control).<br />
kate.jog has zccp-admin role. Added zccp-admin role  into  zccp-owners group of zccp site.</p>
<p>in this way i don&#8217;t want to add users directely into sharepoint site group, instead added the users first into roles &amp; then added the roles into the share point group. everything is working but problem is that if i want to set target audience , i m not getting the role name.<br />
if i set target audience as the sharepoint group then it is working for the users directly added into the group. But not working for the users belonging to the roles.<br />
If you can solve the problem , it will be great help to me.</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farhan Faiz</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-502</link>
		<dc:creator>Farhan Faiz</dc:creator>
		<pubDate>Mon, 06 Apr 2009 23:39:09 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-502</guid>
		<description>Manoj,

What type of authentication you are using? NTLM or other?</description>
		<content:encoded><![CDATA[<p>Manoj,</p>
<p>What type of authentication you are using? NTLM or other?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Manoj Tripathi</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-498</link>
		<dc:creator>Manoj Tripathi</dc:creator>
		<pubDate>Fri, 03 Apr 2009 05:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-498</guid>
		<description>Hi Farhan Faiz ,
i want to populate a dropdown list with sub-sites  as per the permission of the user i.e. if a user open his home site then he can view all the allowed sub-sites into his drop down. 
Can you please give me the code in which i will send a user name &amp; it returns the sub-sites url in which the users has been added.

Thanks in Advance</description>
		<content:encoded><![CDATA[<p>Hi Farhan Faiz ,<br />
i want to populate a dropdown list with sub-sites  as per the permission of the user i.e. if a user open his home site then he can view all the allowed sub-sites into his drop down.<br />
Can you please give me the code in which i will send a user name &amp; it returns the sub-sites url in which the users has been added.</p>
<p>Thanks in Advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farhan Faiz</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-496</link>
		<dc:creator>Farhan Faiz</dc:creator>
		<pubDate>Thu, 02 Apr 2009 17:17:51 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-496</guid>
		<description>Ginni,

To be on safeside, i recomend adding solution approach.

Regards,</description>
		<content:encoded><![CDATA[<p>Ginni,</p>
<p>To be on safeside, i recomend adding solution approach.</p>
<p>Regards,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ginni</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-494</link>
		<dc:creator>Ginni</dc:creator>
		<pubDate>Wed, 01 Apr 2009 09:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-494</guid>
		<description>Is there any other way?? I mean normally i deploy things by copying the dll into GAC on SharePoint Server through VPN. But in this case, this method is not working. Do i need to change my web.config?</description>
		<content:encoded><![CDATA[<p>Is there any other way?? I mean normally i deploy things by copying the dll into GAC on SharePoint Server through VPN. But in this case, this method is not working. Do i need to change my web.config?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farhan Faiz</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-492</link>
		<dc:creator>Farhan Faiz</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:11:08 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-492</guid>
		<description>Ginni,

Try following resource:

http://go.microsoft.com/fwlink/?LinkId=110087

Look for &quot;solution&quot;.</description>
		<content:encoded><![CDATA[<p>Ginni,</p>
<p>Try following resource:</p>
<p><a href="http://go.microsoft.com/fwlink/?LinkId=110087" rel="nofollow">http://go.microsoft.com/fwlink/?LinkId=110087</a></p>
<p>Look for &#8220;solution&#8221;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Farhan Faiz</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-490</link>
		<dc:creator>Farhan Faiz</dc:creator>
		<pubDate>Tue, 31 Mar 2009 21:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-490</guid>
		<description>As per my understanding, RMS blocks &quot;Save As&quot; option as well. Set file as read only.</description>
		<content:encoded><![CDATA[<p>As per my understanding, RMS blocks &#8220;Save As&#8221; option as well. Set file as read only.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ginni</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-487</link>
		<dc:creator>Ginni</dc:creator>
		<pubDate>Tue, 31 Mar 2009 10:08:15 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-487</guid>
		<description>How to deploy the above program on a remote SharePoint Server??? Actually i am using this code on my local machine and need to deploy that on remote SharePoint Server.</description>
		<content:encoded><![CDATA[<p>How to deploy the above program on a remote SharePoint Server??? Actually i am using this code on my local machine and need to deploy that on remote SharePoint Server.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karthik</title>
		<link>http://farhanfaiz.wordpress.com/2008/04/14/moss-add-user-to-site-through-code-programmatically/#comment-481</link>
		<dc:creator>karthik</dc:creator>
		<pubDate>Thu, 26 Mar 2009 08:27:24 +0000</pubDate>
		<guid isPermaLink="false">http://farhanfaiz.wordpress.com/?p=66#comment-481</guid>
		<description>Hi,

Thanks for the reply,

Here also i am using RMS ,Using RMS, i am not able to disable  &quot;Save As&quot;.
But i could disable other options like save, forward etc..
So only i  come back to MOSS.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Thanks for the reply,</p>
<p>Here also i am using RMS ,Using RMS, i am not able to disable  &#8220;Save As&#8221;.<br />
But i could disable other options like save, forward etc..<br />
So only i  come back to MOSS.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
