Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Users across multiple sites View modes: 
User avatar
Member
Member
yasser - 11/4/2010 5:53:43 AM
   
Users across multiple sites
Hi,

I've got one installation of Kentico with a few sites. I have users that have access for all sites, if i was to add a new site to this installation, how can I automatically have my users allowed access for this new site?

User avatar
Member
Member
kentico_michal - 11/4/2010 10:03:38 AM
   
RE:Users across multiple sites
Hi,

Regrettably, this is not supported in Kentico CMS. You will need to use our API to achieve this.

Please take a look at following link where creating a new site using API is described.

http://devnet.kentico.com/docs/devguide/index.html?creating_a_new_web_site.htm

Adding user to a site can be done with following method (http://devnet.kentico.com/docs/devguide/index.html?managing_users.htm):

CMS.SiteProvider.UserInfoProvider.AddUserToSite(UserName, SiteName);

For more information about API please download API reference:
http://devnet.kentico.com/downloads/kenticocms_api.zip


Best regards,
Michal Legen

User avatar
Member
Member
yasser - 11/9/2010 3:43:58 AM
   
RE:Users across multiple sites
Hi

Thanks for your answer, this should help us out.