Find users
List Entra ID users whose sign-in name or display name starts with a text, optionally in a department, enabled only, with their last sign-in.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/entra_find_users · 8 inputs, 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. | |
| Starts with | String | No | Sign-in name or display name starts with this text; all users when empty. | |
| Department | String | No | Only users in this department. | |
| Enabled only | Boolean | No | false | Leave out disabled accounts. |
| Include sign in | Boolean | No | false | Also read the last sign-in time (needs the AuditLog.Read.All permission). |
| Filter | String | No | An extra OData filter, joined with the others by 'and'. | |
| Maximum results | Number | No | 1000 | Most users to return. |
| 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 |
|---|---|---|
| table | Table | Columns: id, name, user_principal_name, email, department, job_title, enabled, last_sign_in. |
| count | Number | How many users were found. |