Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to Create User profiles in Sitecore Programatically

I want to functionality functionality of signup for sitecore website. I want to add sitecore users/user profiles dynamically.

If anyone can help me, it would be highly appriciated.

like image 659
Pankaj Tiwari Avatar asked Aug 07 '12 07:08

Pankaj Tiwari


1 Answers

Sitecore uses the standard ASP.NET Membership provider for its users so you can create users with basic ASP.NET calls..

userName = string.Format(@"{0}\{1}", domain, userName);
Membership.CreateUser(userName, password, email);

domain variable would be sitecore or extranet.

Karina Apostolides has a collection of useful membership functions available here: Programmatically Add & Edit Users

like image 93
Stephen Pope Avatar answered Sep 21 '22 16:09

Stephen Pope