---
schema_version: "1"
id: 0b4d85d29fe931c5f9d739b227ea2965ef6c9954ba6beb8d3826aca2af67e1ab
title: ผู้ใช้ไม่ถูกต้อง (SharePoint หรือ C#)
collection: tableau
version: current
locale: th-th
portal_url: https://docs.salesforce.com/tableau/current/th-th/server-linux/trusted_auth_trouble_invaliduser.md
canonical_url: https://help.tableau.com/current/server-linux/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 ใหม่