Adding the new property to the user profile is easily done in web.config. Extending the user admin dialog will take some more work.
Have a look at: https://world.episerver.com/blogs/Stefan-Forsberg/Dates/2009/5/Adding-a-connected-Company-field-to-an-EPiServer-user--A-love-story/
Hi Tomas,
Thanks for your quick response. I have tried implemented as shown in the link you have shared. What would be the best practice to include new fields which are not part of the exisitng user profile.
<profile defaultProvider="DefaultProfileProvider">
<properties>
<add name="Address" type="System.String" />
<add name="ZipCode" type="System.String" />
<add name="Locality" type="System.String" />
<add name="Email" type="System.String" />
<add name="FirstName" type="System.String" />
<add name="LastName" type="System.String" />
<add name="Language" type="System.String" />
<add name="Country" type="System.String" />
<add name="Company" type="System.String" />
<add name="Title" type="System.String" />
<add name="CustomExplorerTreePanel" type="System.String" />
<add name="FileManagerFavourites" type="System.Collections.Generic.List`1[System.String]" />
<add name="EditTreeSettings" type="EPiServer.Personalization.GuiSettings, EPiServer.Cms.AspNet" />
<add name="ClientToolsActivationKey" type="System.String" />
<add name="FrameworkName" type="System.String" />
</properties>
<providers>
<add name="DefaultProfileProvider" type="System.Web.Providers.DefaultProfileProvider, System.Web.Providers, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" connectionStringName="EPiServerDB" applicationName="/" />
</providers>
</profile>
Is it possible to add other properties , so that they can stored in database.
Regards,
Manik
The first question you should ask yourself is if you really want to use the legacy provider system or switch to asp.net identity or a federated setup instead. Using the membership and profile providers will in my experience only lead to pain and suffering.
I did similar kind of thing in some project using Entity Framwork. That was more easier for to use. :)
But we have more options as Thomas suggested. You can choose any of them.
Hi,
How we can extend the properties of create user in admin panel of CMS? I want to add new properties to the create user screen i.e. CMS/Admin/Create User
Regards,
Manik