Is there a way to put registered user's Last Name and First Name instead of username for lists?

For an extranet site, the FBA users who have registered may use names that are not in the same format as the display name for those users who have access to the same site who are using Windows Authentication.  Therefore, in SharePoint lists, the FBA users show up with their registered username, as opposed to something like "Last, First." in the created by column of the list.

 Is there any way to get the display name (created by) information to show consistently as "Last, First" (which are in the user profile) while still allowing for the user to login with whatever credentials they set up for themselves?

Thanks again,


Have more questions? Submit a request


  • 0
    Permanently deleted user


    ExCM should update the Display Name field of the SharePoint user account during a registration. This only occurs if you have the profile attributes 'FirstName' and 'LastName'. The display name format is '{FirstName} {LastName}' which may be different than what AD uses. If you would like to perform a different action after registration you can always update the OnRegistering event of the Register.aspx page.

    (Configuring Registration Events)

    This will take a bit of .NET programming but you can perform any action you like in this event including updating SharePoint User information.

    Jeremy Luerkens
    Manager, Software Production
    SharePoint Solutions
  • 0
    Andrea Powell

    wow - I would go clean that up, but there doesn't seem to be a way to edit my own posts /sigh.

    (/waves to Jeremy)

  • 0
    Permanently deleted user

    Unfortunately ExCM only updates the SharePoint User Info display name from the Edit Profile page. As you mentioned if the FirstName and LastName fields exist they will be used to set the display name for the user account. Your overall approach to achive this result looks correct. I might suggest some additional things to consider....

    1. You can set the UserName by setting the UserNameTextBox.Text property in the OnRegistering event.

    2. I would perform all of your validation in the OnRegtering event. Set the ErrorMessage (String) and Cancel (Boolean) properties if an error occurs. This will stop the registration and present an error message to the registering user.

    3. Perform an AD/SharePoint updates from the OnRegistered event. This event fires after the registration has been record and the user created in AD. The actual SharePoint User Info object may not exist until the registration has been approved and finalized. Be sure to call the SPWeb.EnsureUser method to ensure the SP User Info object exists.

    (Ensure User Method)

    RegistrationEventProperties Class


    public bool Cancel { get; set; }
    public string Email { get; }
    public string ErrorMessage { get; set; }
    public MembershipUser MembershipUser { get; }
    public string Password { get; }
    public ProfileBase Profile { get; }
    public KeyValuePair<string, object>[] ProfileProperties { get; }
    public string Question { get; }
    public string QuestionAnswer { get; }
    public string UserName { get; }



Please sign in to leave a comment.