Get user (Microsoft 365)
Read a person's directory profile: name, email, job title, department, office and phone.
Command in the Microsoft 365 toolkit · id ooa.microsoft365/get_user · 3 inputs, 1 output
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 | No | me | me, or a user's id or email address. |
| 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, email, user_principal_name, job_title, department, office, mobile_phone. |