grant_masking_exemption
Exempt a member from data masking in a Bytebase project, scoped to one database, schema, table, or columns, or to all databases. The client form confirms the exemption, expiry, and reason before it is written.
Instructions
Exempt one member from data masking in a Bytebase project, for one database (optionally one schema, table, or columns of one table) or for every database in the project. The user confirms the exemption in this client first.
Parameter | Required | Description |
project | Yes | Project name, e.g. "projects/hr" |
member | Yes | "user:{email}", "group:{email}", "serviceAccount:{email}" or "workloadIdentity:{email}" |
database | One of | Database name, e.g. "instances/prod/databases/hr"; it must belong to the project |
allDatabases | One of | true for every database in the project, current and future |
schema | No | Narrow to one schema (needs database) |
table | No | Narrow to one table (needs database) |
columns | No | Narrow to these columns of the table, e.g. ["first_name", "last_name"] (needs table) |
expireTime | No | RFC 3339 time the exemption ends, e.g. "2026-10-27T00:00:00Z"; without it, it does not expire |
reason | No | Why, recorded with the exemption |
An exemption is a standing policy change: the member bypasses the masking that applies to the covered data in query and export results, including masking set up later. It does not set up masking itself; administer_workspace changes the masking rules. For a one-off query, request an access grant instead with request_access_grant.
The tool adds one exemption and leaves every other entry as it is. For several columns of one table, pass them together in columns, so the user confirms once. It shows the user the member, the scope, the expiry and the effect, and asks them to confirm in a form; it writes only when they accept. A client that cannot show the form gets the project's masking exemption page, to grant it in the Bytebase console instead. Do not ask in chat first: the form is the question.
The same permissions apply as in the console. This and revoke_masking_exemption are the only ways to change exemptions over MCP; call_api refuses OrgPolicyService/UpdatePolicy.
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": {
"project": "<project>",
"member": "<member>"
},
"name": "grant_masking_exemption"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | No | ||
| member | Yes | ||
| reason | No | ||
| schema | No | ||
| columns | No | ||
| project | Yes | ||
| database | No | ||
| expireTime | No | ||
| allDatabases | No |