Some usernames (claims encoding) in SharePoint sites are showing up like "i:0#.w|domain\username". How can remove  this part "i:0#w|" ? I want usernames to show up like simple "domain\username".
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Mohit NairSenior AssociateCommented:
If your site is using claims based authentication then its likely to have those special characters. Please check if you have configured user profile service application. Once you have sync connection configured in user profile service, perform a full crawl of profiles and check .
SPAuthor Commented:
Thanks Mohit. Site is using claims based authentication. Yes we do have user profile service application and crawling is already in place, still we can see special characters. Will that get removed if I do full crawl again and why?
Jayaraja JayaramanSharepoint Architect ConsultantCommented:
If this is SharePoint Standard or Enterprise, have you configured the User Profile Service?
  If this is Foundation, use Set-SPUser to set the DisplayName of the account.
also look at
Acronis True Image 2019 just released!

Create a reliable backup. Make sure you always have dependable copies of your data so you can restore your entire system or individual files.

SPAuthor Commented:
Jayaraja - It's SP enterprise. Yes we do have user profile service application and crawling is already in place. How can I use Set-SPUser in this case?
Jayaraja JayaramanSharepoint Architect ConsultantCommented:
you gotta run thro this via SP powershell
eg: Set-SPUser -Identity ‘i:0#.w|domain\jai’ -DisplayName ‘jai’ –Web http://domain/sites/pso

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
SPAuthor Commented:
I tried above powershell. It ran fine but nothing changed. I can still see special characters "i:0#.w. Any idea?
Jayaraja JayaramanSharepoint Architect ConsultantCommented:
go the user profile property via CA and see what the display name is set to?
SPAuthor Commented:
Property name - Name
Property Type - String (single Value)

Is that you looking for?
SPAuthor Commented:
FYI - This user already has a user profile
Hi, I solved it with an Inherit function       "fn-Substring(Variable where the string is,4,25)"   The number 4 is the first character of your desire string and 25 the last character this mean your string will bre from the character 4 to the character 25 in this example.

Also you can create an User defined action, where you can get the login name of an user and with the function "Display name" you can save it in an outpout variable with just the name.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.