pub struct Permission {
pub auth_id: i64,
pub data_id: Option<i64>,
pub domain_id: i64,
pub domain_type: String,
pub is_inherited: bool,
pub meta: PermissionModification,
pub reason: Option<String>,
pub type: String,
pub extra: Map<String, Value>,
}Expand description
One raw stored grant or revocation. Effective access also depends on other sources, inheritance and object policies. A selectable permission uses one row per dataId; write requests accept several data IDs at once.
Fields§
§auth_id: i64Numeric permission key from the internal authorization table
data_id: Option<i64>Concrete selection ID, -1 for unrestricted access including future selections, or null for a permission without a data selection. Null must not be interpreted as unrestricted data access.
domain_id: i64ID of the object the permission belongs to
domain_type: StringAssignment owner: person status, role template of a group type, role in a concrete group, or direct person assignment. These are assignment sources, not necessarily the objects on which the permission takes effect.
Allowed values: group_role, group_type_role, person, status.
is_inherited: boolWhether this source applies through inheritance into subordinate groups; not a statement that the current response row was inherited.
meta: PermissionModification§reason: Option<String>Optional reason why this permission was assigned
type: StringWhether the permission grants or revokes access
Allowed values: grant, revoke.
extra: Map<String, Value>Fields not described by the spec, e.g. instance-specific DB fields.