current_principal_details()

Returns details of the principal running the query.

Syntax

current_principal_details()

Returns

The details of the current principal as a dynamic.

Example

print d=current_principal_details()
d
{
"UserPrincipalName": "user@fabrikam.com",
"IdentityProvider": "https://sts.windows.net",
"Authority": "72f988bf-86f1-41af-91ab-2d7cd011db47",
"Mfa": "True",
"Type": "AadUser",
"DisplayName": "James Smith (upn: user@fabrikam.com)",
"ObjectId": "346e950e-4a62-42bf-96f5-4cf4eac3f11e",
"FQN": null,
"Notes": null
}