skip to content
Alvin Lucillo

Retrieving object id of signed-in user

/ 1 min read

To get the unique identifier of the logged-in account, use the az ad signed-in-user show command below. Note that the ID below is fictitious.

az ad signed-in-user show --query id -o tsv
3c1ba39b-f898-47f3-a132-b87fba7499a6