model_add_role
Add or replace a row-level security role in a Power BI Project's TMDL semantic model using a specified table and filter expression.
Instructions
Add or replace a simple row-level-security role in definition/roles/*.tmdl.
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": {
"projectPath": "<projectPath>",
"name": "<name>",
"table": "<table>",
"filterExpression": "<filterExpression>"
},
"name": "model_add_role"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectPath | Yes | ||
| name | Yes | ||
| table | Yes | ||
| filterExpression | Yes | ||
| dryRun | No |