entra_list_users
List Microsoft 365 user accounts with assigned licenses. Filter by department or enabled status, and page through large tenants to identify employees or audit license usage.
Instructions
List accounts in the Microsoft 365 tenant with the licences each one holds.
Use this to answer "who works here", "who is in Finance", or as the first
step before looking at a specific person. Results are paged: check
has_more and raise offset to continue.
Requires the Graph application permission User.Read.All.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum accounts to return. | |
| offset | No | Accounts to skip, for paging through a large tenant. | |
| department | No | Only accounts in this department, matched exactly (e.g. 'Finance', 'Engineering'). | |
| enabled_only | No | Exclude disabled accounts. Leave false when auditing licence waste — disabled accounts are the ones most likely to be holding one. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |