list_database_principals
List database principals (users and roles) from a Fabric warehouse or SQL endpoint, with optional filtering by principal type for users or roles.
Instructions
List database principals from sys.database_principals.
Args:
workspace: Workspace name or GUID.
item: Warehouse or SQL endpoint name or GUID.
principal_type: Filter by type -- "user" for users, "role" for
database roles, "all" or omit for no filter.
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": {
"workspace": "<workspace>",
"item": "<item>"
},
"name": "list_database_principals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| workspace | Yes | ||
| principal_type | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |