Invalid User (SharePoint or C#)

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.

Thanks for your feedback!Your feedback has been successfully submitted. Thank you!