datamodel.get_datamodel_shares
datamodel_get_datamodel_sharesRetrieve all user and group shares for a data model, resolving IDs to names and emails with EDIT, READ, or USE permissions. Use to audit who has access to a model.
Instructions
Retrieve all share entries (users and groups) for a given data model. Resolves user and group identifiers to names/emails and returns the shares in a flat row format. Permission codes are mapped to "EDIT", "READ", or "USE".
Returns: list[dict[str, Any]] List of dicts, each with "datamodel_name", "datamodel_id", "party_name", "party_type", and "permission" — an empty list means the model genuinely has no shares. On failure, …
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": {
"datamodel_name": "<datamodel_name>"
},
"name": "datamodel_get_datamodel_shares"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datamodel_name | Yes | Name of the data model to retrieve shares for. |