What is invalid user(share point or c#)

What is invalid user(share point or c#)

What is invalid user(share point or c#)

EXPLANATION

You may encounter this error if you’ve configured Tableau Server for trusted authentication.

The example code for the SharePoint .dll references the following GET request:

SPContext.Current.Web.CurrentUser.Name

The above request will return the display name of the current Windows Active Directory user. If you want to use the login ID, then you will need to change the code to:

SPContext.Current.Web.CurrentUser.LoginName

After you make the change, recompile the SharePoint .dll.

Leave a Reply

Your email address will not be published. Required fields are marked *