petra_list_billable_users
Lists the individual billable Microsoft 365 users for one tenant, with display name, UPN, mail, enabled flag, license SKU IDs, and total/projected billable counts.
Instructions
List the individual billable users for ONE tenant (users with an assigned Microsoft license that are not deleted), with display name, UPN, mail, enabled flag and license SKU IDs, plus totalBillableUsers and projectedBillableUnitsThisMonth. This is the user-level detail behind petra_get_usage. A Microsoft tenant ID is resolved to the Petra tenant ID automatically.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tenantId": "<tenantId>"
},
"name": "petra_list_billable_users"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tenantId | Yes | Petra tenant ID (from petra_list_tenants, or the app.petrasecurity.com/tenant/<id> URL) or the Microsoft tenant ID; Petra resolves either. | |
| enabledOnly | No | Only return users whose account is enabled (filtered locally). Totals still reflect Petra’s count. |