---
schema_version: "1"
id: 4c9ed953d736ac7be0c8afe9ac8612e63ddc2db863cfe6972127596a9f937175
title: 無効なユーザー (SharePoint または C#)
collection: tableau
version: next
locale: ja-jp
portal_url: https://docs.salesforce.com/tableau/next/ja-jp/server/trusted_auth_trouble_invaliduser.md
canonical_url: https://help.tableau.com/v0.0/server/ja-jp/trusted_auth_trouble_invaliduser.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 6bff9c5851f6a1258101d5d7ba3ed68ca8c0965aa93f6b149323117a045dcd78
description: Resolve the Invalid User error in SharePoint or C# trusted authentication.
---
[メイン コンテンツに進む](#main-content)

# 無効なユーザー (SharePoint または C#)

Tableau Server で信頼できる認証を構成している場合に、このエラーが発生する可能性があります。

SharePoint .dll のサンプル コードは次の GET 要求を参照しています。

SPContext.Current.Web.CurrentUser.Name

上記の要求によって、現在の Windows Active Directory ユーザーの表示名が返されます。ログイン ID を使用する場合は、コードを次のように変更する必要があります。

SPContext.Current.Web.CurrentUser.LoginName

変更後、SharePoint .dll を再コンパイルします。