Skip to main content
16 votes
Accepted

Move users / roles / passwords to new core database

There are a few options to transfer Users and Roles from one instance to another. Sitecore Packages You can use the standard Package Designer application from the Development Tools menu in the ...
jammykam's user avatar
  • 13.9k
7 votes

Why we should keep all user profile data in Sitecore?

If you have a lot of custom user profile data, especially if you have 500k+ users, then your best bet is probably going to be to create a custom SQL database and store your user data, with a key for ...
Zachary Kniebel's user avatar
7 votes

Getting User Roles from Username

To get a user by a username you can use : public class UserRepository { public static User GetUser(string domainName, string userName) { if (User.Exists(domainName + @"\" + userName)) ...
Vlad Iobagiu's user avatar
  • 18.8k
6 votes
Accepted

How to run custom logic when a user has been added to a particular role?

You can do this using Sitecore's eventing engine, by creating event handlers for the roles:usersAdded event, the roles:usersAdded:remote event, or both. The roles:usersAdded event is raised when ...
Zachary Kniebel's user avatar
5 votes

Sitecore Virtual User is lost on new page request

I recently came across with the same situation where we have created Virtual user and also created some custom property. At the early stage it was working properly as Sitecore user works but one day ...
Yogesh Sharma's user avatar
5 votes
Accepted

Prepopulate WFFM field with username

Based on this blog post the only valid options are Comment, Name and Full Name. You can try changing your value from User Name to Full Name but I'm not sure if it will give you what you need. You may ...
Christian Hagelid's user avatar
4 votes
Accepted

Renaming user names in Sitecore Membership Database

You need to change the LoweredUserName column as well. I just tried that and it seems to work. I couldn't verify if the affected user can still logon or whether he encountered any issues after the ...
Gatogordo's user avatar
  • 20.3k
4 votes

How to run custom logic when a user has been added to a particular role?

Thought I would give a more complete answer. If you would like to use Sitecore PowerShell Extensions to run custom scripts for events you can make use of the Events integration point. There is an ...
Michael West's user avatar
  • 18.6k
3 votes

Why we should keep all user profile data in Sitecore?

Typically I like to keep users in Sitecore unless there is a third party membership provider, active directory, OAuth, or SSO solution. If you do not need to use an external membership provider, then ...
C Sigmon's user avatar
  • 421
2 votes

Create users from API

If all you really need to do, is create users based on "Name" and "Email", you don't have to put this in Sitecore at all. Sitecore runs on a completely standard ASP.NET Membership Provider ...
Mark Cassidy's user avatar
  • 25.4k
2 votes

How to validate a "Disabled" user account

If login fails, you could try to fetch the user and check the Membership user object properties for the status. You can detect the IsApproved flag this way, but not verify the password. But you ...
Gatogordo's user avatar
  • 20.3k
2 votes
Accepted

Difference between aspnet_Users, aspnet_Profile and aspnet_Membership tables in Sitecore

To understand this subject better, it's best if you learn how ASP.Net Membership works first using Microsoft documentation: https://learn.microsoft.com/en-us/previous-versions/aspnet/tw292whz(v=vs....
Marek Musielak's user avatar
  • 24.2k
1 vote
Accepted

Error logging in after resetting admin password

Did you recently switch your hashing algorithm to SHA512? If so, you'll need a different password value: USE [sitecorecmsSitecore_Core]; UPDATE [aspnet_Membership] SET [Password]='...
Dan Sinclair's user avatar
  • 5,465
1 vote
Accepted

Adding a CM User from External System to Sitecore

Creating a custom API will work for you. Where you can write this logic to create user into Sitecore database. Here is a code snippet that you can refer to. System.Web.Security.Membership.CreateUser(...
Sumit Bhatia's user avatar
  • 5,919
1 vote

Adding a CM User from External System to Sitecore

In my project, I encountered a similar necessity, wherein an external system required the creation of users within Sitecore. To address this, I developed an API facilitating the seamless creation of ...
Swati Gupta's user avatar
  • 3,442
1 vote

Adding a CM User from External System to Sitecore

Sitecore uses the standard ASP.NET Membership provider for its users so you can create users with custom API calls. userName = string.Format(@"{0}\{1}", domain, userName); Membership....
Sumit Helaiya's user avatar
1 vote

Adding a CM User from External System to Sitecore

Sitecore provides RESTful APIs for Item manipulation but there is NO native API to create user in Sitecore. You will need custom API for same.
Vikrant Punwatkar's user avatar
1 vote

Entity Framework Code First - Sitecore Databases

I agree with the comments about not using EF CodeFirst approach with any of the default Sitecore databases. I would suggest using a custom database or only using the core database to query data from ...
jammykam's user avatar
  • 13.9k
1 vote
Accepted

How to validate a "Disabled" user account

You could override the SqlMembershipProvider and configure ASP.NET (and Sitecore) to use your version, but the extensibility points are so limited that I feel it's not really worth it. Also, the goal ...
maz's user avatar
  • 1,833

Only top scored, non community-wiki answers of a minimum length are eligible