---
schema_version: "1"
id: 44fd7fa4a0827ef19557e5c24e7169cf5e79da344c23425ecd23bb54a4e29fbf
title: ผู้ใช้ไม่ถูกต้อง (SharePoint หรือ C#)
collection: tableau
version: next
locale: th-th
portal_url: https://docs.salesforce.com/tableau/next/th-th/server/trusted_auth_trouble_invaliduser.md
canonical_url: https://help.tableau.com/v0.0/server/th-th/trusted_auth_trouble_invaliduser.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 5269197c4e6cd19fc1b5c71e8fbad2e7329b3c4cfeb309d5a3fb9f085d224490
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 ใหม่