skip to main
|
skip to sidebar
SharePoint Tricks
Rare Informations about Sharepoint
Thursday, March 5, 2009
Add user in SP site Programatically
SPSite thisSite1 = SPControl.GetContextSite(HttpContext.Current);
SPWeb web = thisSite1.OpenWeb();
web.AllowUnsafeUpdates = true;
web.SiteUsers.Add("bomcordom:" + _userid, "", _userid, "");
web.Groups[
].AddUser("bomcordom:" + _userid, "", _userid, "");
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)
Blog Archive
►
2013
(7)
►
Jul 2013
(7)
►
2010
(1)
►
Jan 2010
(1)
▼
2009
(7)
►
Dec 2009
(4)
►
Nov 2009
(1)
▼
Mar 2009
(1)
Add user in SP site Programatically
►
Feb 2009
(1)
►
2008
(10)
►
Oct 2008
(3)
►
Sep 2008
(7)
About Me
View my complete profile