無效使用者(SharePoint 或 C#)
如果您將 Tableau Server 設定為使用受信任的驗證,則可能會遇到此錯誤。
SharePoint .dll 的範例代碼引用以下 GET 請求:
SPContext.Current.Web.CurrentUser.Name
上面的請求將返回當前 Windows Active Directory 使用者的顯示名稱。如果要使用登入 ID,則需要將代碼變更為:
SPContext.Current.Web.CurrentUser.LoginName
進行變更後,請重新編譯 SharePoint .dll。