Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

package domain, role and user on sitecore

Tags:

sitecore

I am new to sitecore.

I have a question regarding packaging Domain and Roles on sitecore (we are using sitecore 6.3.1).

I am packaging content from our dev box to stage and I would like to transfer the Domain, Roles and user created on dev to stage.

The package designer shows a button called 'Security Accounts'. I added the specific user \ who belong to the specific domain and role.

On installing the package to stage site, it throws an error 'blah domain not found, cannot create user'.

So the question is, do i have to create a domain manually on the stage server before I install the user? or is there a way where I can copy the domain and roles to create the user?

Help much appreciated.

like image 336
jack Avatar asked Dec 28 '22 12:12

jack


2 Answers

I have discovered that the domains are stored in /App_Config/Security/Domains.config and you can migrate between installations simply by copying or editing this file.

Or you can create the domains manually via the Security Domain tool.

Either way the domain must exist before you can install a package with users or roles.

like image 177
Andy Avatar answered Dec 30 '22 02:12

Andy


If your target solution doesn't have the domain the user lives in, you'll have to create it manually. However, the roles can be transferred via package the same way as users. If the user A is in role B, and you don't add role B to the package, there should not be any error - simply the user A won't be a member of the role B on target environment.

like image 45
Yan Sklyarenko Avatar answered Dec 30 '22 01:12

Yan Sklyarenko