8 votes
Accepted

Sitecore Express Migration Tool skipping users and security group

This is a known issue : https://kb.sitecore.net/articles/583017 As a workaround for the issue, please consider deleting the {Express Migration Root folder}/Migration.db file before running the ...
Vlad Iobagiu's user avatar
  • 18.2k
7 votes
Accepted

Changing the "Invalid Password" message in User Manager

This message is a dictionary entry in the core database in Sitecore. Go to Sitecore Desktop, switch to core database and find the item: Path: /sitecore/system/Dictionary/F/Failed to set the ...
Marek Musielak's user avatar
  • 23.1k
6 votes

How to programatically update a General Link field in a custom user profille?

What Mark has outlined will work. The only downside is that you'll have to compose the XML yourself, and its structure could potentially change in future versions of Sitecore (however unlikely that is)...
Dmytro Shevchenko's user avatar
6 votes
Accepted

How to programatically update a General Link field in a custom user profille?

First things first. The fact that you get YSOD on a malformed value is actually a bug. It is registered with Sitecore under public reference 96011. That said; internally; General Link is an XML ...
Mark Cassidy's user avatar
6 votes
Accepted

How to set default wallpaper for virtual user?

The problem could be is that you are using the following: virtualUser.Profile.SetCustomProperty("Wallpaper", "/sitecore/shell/themes/backgrounds/Field.jpg") Try to use the following: virtualUser....
Tamás Tárnok's user avatar
5 votes
Accepted

How to remove admin role permissions programatically?

Here is the correct code: var user = Sitecore.Security.Accounts.User.FromName("sitecore\\test", true); RemoveRoles(user); protected void RemoveRoles(Sitecore.Security.Accounts.User user) { ...
Marek Musielak's user avatar
  • 23.1k
5 votes
Accepted

Bulk deleting Sitecore users

Yes, basically. SELECT UserID, UserName into #temp FROM aspnet_Users WHERE UserName in ('MEMBER10001','MEMBER10002','MEMBER10003','MEMBER10004','MEMBER10005') You should adjust this WHERE clause to ...
Mark Cassidy'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
4 votes
Accepted

Add profile image for Sitecore user

You can create custom profile properties for the profile in the core database. There you can even use Image field. From your code you can reach it and show on the page. How to create custom property -...
Tamás Tárnok's user avatar
4 votes
Accepted

Best practices for user profile one-to-many relationships with attributes

The best practice is to have everything in Sitecore. User profile fields are stored in Core db. You can define "database" in your field source. You will define source of your field like : ...
Vlad Iobagiu's user avatar
  • 18.2k
4 votes
Accepted

Retrieve favorite pages based on the user profile

I think your solution to create a new collection in mongodb is a very viable solution. Then you can just query the collection to get the top 5 pages. I would not recommend to put it in xDB as a ...
Morten Røermose's user avatar
3 votes
Accepted

How to perform a faster search on User list

There is, but none of the ways I know of will go via the standard API. The "problem" is; while the standard API will allow you to paginate through the user base, it will not allow you to ...
Mark Cassidy's user avatar
3 votes

Renaming a custom field name in User profile

Additional notes for Mark Cassidy's answer that, if you change the name of the user profile field in Sitecore you can migrate these values for the changed name. So you need something like this: ...
Tamás Tárnok's user avatar
3 votes

Bulk deleting Sitecore users

Another way to do this would be from User Manager, by leveraging the serialization feature. For this to work, you need direct access to the server. Click on "Serialize All Users". Go to your ...
maz's user avatar
  • 1,813
3 votes

How to get Sitecore User Custom Profile Data in JSON Format?

You can use Sitecore PowerShell Extensions to extract the custom properties. The data is stored in the Core database. $user = Get-User -Id "sitecore\michael" $data = @{} foreach($name in $user....
Michael West's user avatar
3 votes
Accepted

Running asynchronous tasks to update user profile

Sitecore jobs is the best option in such case, but you can use them in different ways. Best approach for using them may vary by business requirements, like frequency of user logins and the time ...
Yogesh Patel's user avatar
  • 1,007
3 votes
Accepted

Change password using generate button in User Manager

To make this work you need to follow these 5 steps: Create your own GeneratePassword() method.It should do exactly the same as System.Web.Security.SqlMembershipProvider.GeneratePassword(), but ...
Peter Procházka's user avatar
3 votes

What are differences between Sitecore Custom Property(Context.User.Profile) and Session?

Context.User.Profile Custom properties from Context.User.Profile are stored together with user profiles. It may vary between Sitecore versions where this data is stored and how it's accessed but in ...
Marek Musielak's user avatar
  • 23.1k
2 votes

Sitecore custom user profile is not supporting inheritance?

Can you try bellow solution : 1)Copy the attached Sitecore.Support.350672 file to the bin folder 2)Open the Website\sitecore\shell\Applications\Security\EditUser\EditUser.xaml.xml file and ...
Vlad Iobagiu's user avatar
  • 18.2k
2 votes
Accepted

Storing a user interaction with a page outside of session

You can use MongoDB to achieve what you need. Just create a custom facet (Sitecore documentation: Create a custom contact facet) and store the information whether user chose to never show the message ...
Marek Musielak's user avatar
  • 23.1k
2 votes
Accepted

Automatically check some ribbon item

As you have specified in your comment, clearing the cache from the cache.aspx page, fixed the issue. The reason why even clearing the cache from the code is not working is because the Context.Site is ...
Hishaam Namooya's user avatar
2 votes
Accepted

GetCustomPropertyNames does not return all profile fields

Because a Security Profile Item in "core" is not a Schema And you're going about it wrong. To reach the "schema" for a user If you want to read all available fields defined for ...
Mark Cassidy's user avatar
2 votes
Accepted

Renaming a custom field name in User profile

User profile fields are not Sitecore.Data.Field. What you define in the custom profile is merely a mapping so that Sitecore can provide a basic UI for the user, such as this. Behind the scenes, these ...
Mark Cassidy's user avatar
2 votes
Accepted

Can't get user roles on content delivery server

Since membership data is stored in the core database and you have separate core databases between CM and CD, it's likely that the CDs' core does not contain the role memberships you expect. You will ...
Dan Sinclair's user avatar
  • 5,335
2 votes

Sitecore search for users

From core database are indexed just items. Sitecore users are stored in the memberhip table which doesn't appear like items on Core db. You need to create your own crawler and your own index to ...
Vlad Iobagiu's user avatar
  • 18.2k
2 votes
Accepted

Making use of the "user" events

Any event handler has to follow a few conventions: The class must have a method that accepts two parameters and return void: object - represents the object that holds a collection of the various ...
i123fr3's user avatar
  • 372
2 votes

What is the correct way to set commerce user custom profile properties

We added phoneNumber in CommerceUser, for that we used below code. You can update as per your requirement. But yes you need to save it into Customer Entity using below code. public bool ...
Gaurav Agarwal's user avatar
1 vote

Changing the "Invalid Password" message in User Manager

Hi @Marek thank you it works fine, I don't know why the first time I didn't seen my changes. Just notice that for me it's not the same GUID {5BB66CB4-F2BC-E08E-9563-28194D5C9779} For adding a new ...
user1032's user avatar
  • 137
1 vote

Which is the correct way to customize the Commerce User Profile?

Code that you posted is for setting custom property on default user object in Sitecore not for Sitecore CommerceUser / profile object. There is not much documentation on how to extend Sitecore ...
Peter Procházka's user avatar
1 vote

All Users are not being tracked in Sitecore Analytics

This requires you to debug through the whole Sitecore--> xDB --> Aggregation pipeline--> reporting databases --> Sitecore_Analytics_Index. Please ensure the below: CD is recording the interactions ...
Praful Memane's user avatar

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