Skip to content

app.record_grants

TableRow level security on

Access to an org, workspace, team, project or record granted to a person or another organization with scope and expiry, for example a standing partner grant (Section 4.6.1).

Primary key: id

Columns of app.record_grants
ColumnTypeNullableDescription
iduuidNoGrant id.
org_iduuidNoOrg that owns the target, derived from it by private.scope_org.References app.organizations.id
target_kindapp.grant_target_kindNoKind of target.
target_iduuidNoTarget row id.
capability_codetextNoCapability the grant allows on the target.References app.capabilities.code
grantee_person_iduuidYesPerson who receives access; null when an organization does.References app.people.id
grantee_org_iduuidYesOrganization whose active members receive access; null when a person does.References app.organizations.id
valid_fromtimestamp with time zoneNoWhen access starts.
valid_totimestamp with time zoneNoWhen access ends. Record grants always expire.
granted_byuuidYesPerson who granted it; never the grantee.References app.people.id
reasontextNoWhy the grant was made, for example the partner agreement clause.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.