Here you go for the sample code snippets for user management in SPS - //Add users to the portal area or portal site level TopologyManager tm = new TopologyManager(); PortalSite ps = tm.PortalSites[ new Uri("http://karthickmain:9092") ]; Microsoft.SharePoint.Portal.PortalContext