หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to: ✅ Microsoft Fabric ✅ Azure Data Explorer ✅ Azure Monitor ✅ Microsoft Sentinel
Provides the current principal name that runs the query.
Syntax
current_principal()
Learn more about syntax conventions.
Returns
The current principal fully qualified name (FQN) as a string.
The string format is:
PrinciplaType=PrincipalId;TenantId
Examples
The following example returns the current principal name.
print fqn=current_principal()
Output
| fqn |
|---|
| aaduser=346e950e-4a62-42bf-96f5-4cf4eac3f11e;72f988bf-86f1-41af-91ab-2d7cd011db47 |