displayUsername
The displayUsername function returns the friendly display name (typically first and last name) of the user who created the current search.
To get the user’s login username instead, use user().
Syntax
displayUsername()
Arguments
None.
Returns
A string containing the display name of the user who created the search.
Examples
Tag exported results with the full name of the user who ran the search:
dataset=myDataset
|| extend run_by=displayUsername()
|| export to lake myAuditDatasetBuild a full provenance record combining the display name, login username, and job ID:
dataset=myDataset
|| extend search_id=jobID(), display_name=displayUsername(), login=user()
|| export to lake myAuditDataset