Friday, February 23, 2018

SITECORE USER CLONE

Sitecore User Clone is used to create the copy of the user with same roles, name, email, and profile. It will prompt to accept the new username, password and all the editable fields same like Edit user.

Installation

Simply download and install the package for your Sitecore version.


Sitecore Items in the Packages:

·       Created the Clone User Application in Core Database under Security Application. Item Path –“/sitecore/content/Applications/Security/Clone User”.
·       Created a new button called Clone in User Manager ribbon to select the user. Item Path – “/sitecore/content/Applications/Security/User Manager/Ribbon/Home/Users/Clone”
Files in the Package:
·       In the App_Config/Include folder there will appear the SitecoreClone config file which has the command “usermanager:cloneuser”.
·       In the \sitecore\shell\Applications\Security\CloneUser there will be CloneUser XML file.
·       In bin folder has the Sitecore.UserClone.dll

Working:



We need to select the user to Clone the User.
     


Clone user Window:



The user needs to input the Username and Password. Other fields will be same as the selected user. A user can even edit the profile and change the profile. But before changing the profile, User needs to be created. All the current validation against creating user has been taken care of this clone user functionality.
Kindly post your comments and for contact sivakumar@outlook.com.


Saturday, February 10, 2018

Sitecore Powershell::Publish Powershell result Item

Sitecore Powershell:: Publish Powershell result Item

I wrote some the PowerShell scripts as a part of my Sitecore Powershell learning. To publish the result item, each item I need to open the particular item and then need to publish it. So I wrote a simple Publish action script which will intern calls the “item:publish” shell command and do publish.



Created a Publish Item Action script under Internal->List View->Ribbon->Item ->Publish Item.


The Script body contains the below simple code:

foreach($Item in $selectedData)
{
Invoke-ShellCommand -Name "item:publish" -Item $Item

}