Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

provider|GUID@mydomain.dom

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? snipplr.com/view/25015 –  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

1 Answer 1

up vote 1 down vote accepted

As written here: http://msdn.microsoft.com/en-us/library/ms457529.aspx

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

 
discard

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.