I've got a CBA login represented by the following string:
"-1;#i:0#.w|YYY-test\\sxe1444,#i:0#.w|YYY-test\\sxe1444,#SSS.EEE@YYY.com,#SSS.EEE@YYY.com,#EEE, SSS (Contractor),#,#,#"
The user definitely exists on that SPWeb, but when it comes to call
spWeb.EnsureUser("-1;#i:0#.w|YYY-test\\sxe1444,#i:0#.w|YYY-test\\sxe1444,#SSS.EEE@YYY.com,#SSS.EEE@YYY.com,#EEE, SSS (Contractor),#,#,#")
I get an exception telling there's no such user known for Sharepoint. Moreover, when I call SPClaimProviderManager.IsEncodedClaim(), it returns false for that user's login. I'd like to know what I'm doing wrong and how to retrieve the Windows domain user login from such string.