I have a web application set up with two extended zones (Default/Internet and Intranet). The default zone uses claims authentication (for external users) and the intranet zone uses windows auth.
When calling the CreateSite endpoint:
adminClient.CreateSite("https://sharepoint-tor.pp.com/Test-1","Test 1", string.Format("Test Site", "Test 1"), 1033, "STS#2", "email@example.com", "Paulo", "firstname.lastname@example.org", "", "" );
I receive "User cannot be found". If I remove the intranet zone of the web app and make the exact same call the site creates with no issue. My guess is that there's a collision occurring between the user returned from claims and the user returned from windows auth and it doesn't know which to choose so it throws a (poorly worded) exception of "User cannot be found".
I understand I can qualify the username by doing:
One thing I'm not sure of is whether the claims token specifier (0e.t) is always the same?
Also slightly related... Is it possible to have a user be able to authenticate from both zones without having to add both the windows and the claims account? This would probably answer the above question