Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Permalink
main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
title description ms.reviewer ms.topic ms.date zone_pivot_group_filename zone_pivot_groups
current_principal() - Azure Data Explorer
Learn how to use the current_principal() function to return the name of the principal running the query.
alexans
reference
11/23/2022
data-explorer/zone-pivot-groups.json
kql-flavors

current_principal()

::: zone pivot="azuredataexplorer"

Returns the current principal name that runs the query.

Syntax

current_principal()

Returns

The current principal fully qualified name (FQN) as a string.
The string format is:
PrinciplaType=PrincipalId;TenantId

Example

print fqn=current_principal()

Output

fqn
aaduser=346e950e-4a62-42bf-96f5-4cf4eac3f11e;72f988bf-86f1-41af-91ab-2d7cd011db47

::: zone-end

::: zone pivot="azuremonitor"

This capability isn't supported in Azure Monitor

::: zone-end