set_sensitivity_labels
Apply Microsoft Purview sensitivity labels to Power BI reports, dashboards, and semantic models; optionally validate with dry run.
Instructions
Apply Microsoft Purview information protection sensitivity labels to items.
Use this tool when the user asks to:
Classify or protect Power BI items (reports, semantic models, dashboards).
Set Purview sensitivity labels (Confidential, General, Highly Confidential).
Args: items: List of dicts specifying item IDs and types (e.g. [{"id": "...", "type": "Report"}]). label_id: Microsoft Purview label GUID. label_name: Display name of the sensitivity label. admin_scopes: Optional list of administrative authorization scopes. redact_names: Whether to redact item names in returned logs for security. dry_run: If True, validate permissions without applying labels.
Returns: Dict with updated items, failed items, and compliance status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | ||
| dry_run | No | ||
| label_id | Yes | ||
| label_name | Yes | ||
| admin_scopes | No | ||
| redact_names | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||