Skip to main content

Get user

Read one Entra ID user: name, sign-in name, department, whether the account is enabled, the manager and (optionally) the last sign-in.

Command in the Microsoft 365 toolkit · id ooa.microsoft365/entra_get_user · 4 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Access tokenCredentialNoMicrosoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token.
UserStringYesA user's object id or sign-in name (user principal name).
Include sign inBooleanNofalseAlso read the last sign-in time (needs the AuditLog.Read.All permission).
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
userDictionaryid, name, user_principal_name, email, department, job_title, enabled, last_sign_in, manager, on_premises_dn.
enabledBooleanWhether the account can sign in.