AccessControlPolicy
Shared request and response schema. Request: Access-control policy identified by the composite resource_id and subject_id fields. It has no single id; row filters and column masks must use the structured fields rather than raw SQL. Response: Access-control policy identified by the composite resource_id and subject_id fields. It has no single id; row filters and column masks use the structured response fields.
Resource ID this policy applies to
Subject identifier: 'user.{uuid}' or 'group.{uuid}'
row_filters object
Structured row-filter tree, or null when no row restriction applies.
- RowFilter
- null
Possible values: [and, or]
andconditions object[]
Nested conditions (leaf RowFilterCondition or group RowFilter)
- RowFilterCondition
- Option 2
conditionconditionColumn name to filter on
Allowed Row Filter Operator values. Values: eq, ne, gt, gte, lt, lte, in, not_in, and 4 more.
Possible values: [eq, ne, gt, gte, lt, lte, in, not_in, between, like, is_null, is_not_null]
value object
Filter value. Single value for scalar operators, list for 'in'/'not_in', 2-element list for 'between'. Omit for 'is_null'/'is_not_null'.
- Option 1
- null
column_masks object
Column-mask rules keyed by column name, or null when no masking applies.
- object
- null
created_at object
- integer
- null
updated_at object
- integer
- null
{
"resource_id": "string",
"subject_id": "string",
"row_filters": {
"kind": "and",
"conditions": [
{
"kind": "condition",
"column": "string",
"operator": "eq"
},
null
]
},
"column_masks": {},
"created_at": 0,
"updated_at": 0
}