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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Access token | Credential | No | Microsoft Graph access token from the vault; or leave it empty and choose a connection that signs in, which gets and renews the token. | |
| User | String | Yes | A user's object id or sign-in name (user principal name). | |
| Include sign in | Boolean | No | false | Also read the last sign-in time (needs the AuditLog.Read.All permission). |
| Endpoint address | String | No | https://graph.microsoft.com/v1.0 | Graph endpoint; change only for national clouds or testing. |
Outputs
| Output | Type | What it is |
|---|---|---|
| user | Dictionary | id, name, user_principal_name, email, department, job_title, enabled, last_sign_in, manager, on_premises_dn. |
| enabled | Boolean | Whether the account can sign in. |