Skip to main content

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​

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.
Starts withStringNoSign-in name or display name starts with this text; all users when empty.
DepartmentStringNoOnly users in this department.
Enabled onlyBooleanNofalseLeave out disabled accounts.
Include sign inBooleanNofalseAlso read the last sign-in time (needs the AuditLog.Read.All permission).
FilterStringNoAn extra OData filter, joined with the others by 'and'.
Maximum resultsNumberNo1000Most users to return.
Endpoint addressStringNohttps://graph.microsoft.com/v1.0Graph endpoint; change only for national clouds or testing.

Outputs​

OutputTypeWhat it is
tableTableColumns: id, name, user_principal_name, email, department, job_title, enabled, last_sign_in.
countNumberHow many users were found.