SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm in a claim based installation of sharepoint 2010. My users are matched by user GUID in this form:


My GUID is case sensitive.

If I use SPEnsureUser(provider|GUID@mydomain.dom) it creates the user but with lowercase login name!

I tried AddUser(provider|GUID@mydomain.dom, mail, name, note) but the user has a lowercase login name.

With SPFarm.local.MigrateUser( lower --> normal case) the login name comes as I want it.

There is any other way to create new user on sharepoint?

share|improve this question
Have you tried something like this? – Ray Nov 8 '12 at 15:29
Yes but takes me to a case insensitive login name.. – Ziba Leah Nov 8 '12 at 15:57
up vote 1 down vote accepted

As written here:

SharePoint Foundation does not support working with a case-sensitive membership provider. It uses case-insensitive SQL storage for all users in the database, regardless of the membership provider.

So even if a login name is registered as lowercase or uppercase to sharepoint it is the same.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.