New answers tagged spuser
Does the "Boss" have access to that specific site? I think the EnsureUser method goes in this order: Checks if user has access to site If user does not it validates that the user, then gives access EnsureUser does validate against AD, so if you really want this to work, I would suggest to enable his/her account, run this command, then disable it again. ...
SPWeb.EnsureUser evaluates against Active Directory (Windows) and Forms-based Authentication Claim providers. Since you're using a SAML provider (regardless if the user is originating from Active Directory), there is nothing for SharePoint to attempt to resolve against. In other words, what you're seeing is by design.
Top 50 recent answers are included