cipp_list_user_groups
List all groups a user belongs to in Microsoft 365 using user ID or UPN, with tenant scope for single or all tenants.
Instructions
List groups a user is a member of
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": {
"tenantFilter": "<tenantFilter>",
"userId": "<userId>"
},
"name": "cipp_list_user_groups"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userId | Yes | The target user's Azure AD object ID or User Principal Name (UPN, e.g. alice@contoso.com). | |
| tenantFilter | Yes | Tenant domain name or ID to scope the operation. Use 'allTenants' to target every managed tenant. |