current_principal_details()current_principal_details()

返回运行查询的主体的详细信息。Returns details of the principal running the query.

语法Syntax

current_principal_details()

返回Returns

作为 dynamic 的当前主体的详细信息。The details of the current principal as a dynamic.

示例Example

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