Tag: claim
-
Register Managed Accounts
$account = New-Object System.Management.Automation.PSCredential "READYLAB\sp2013_c2wts", ` (ConvertTo-SecureString "M0dewh1z" –AsPlainText –Force) $managedAccount = New-SPManagedAccount $account
-
Cannot get the full name or e-mail address of user
If you are using Claim authentication, make sure to pass the login user name in the format of “@"i:0#.w|readylab\sheriffm"” for calling the method – “SPUtility.GetFullNameandEmailfromLogin” Otherwise you will end up with an error – Cannot get the full name or e-mail address of user. string displayName = ""; string emailAddress = ""; try { SPUtility.GetFullNameandEmailfromLogin(web,…