Scale Intelligence■ Docs
Docs / The model / Role

Role.

A named set of grants; platform originals a tenant copies

Figure 1Rolespecified
ROLErow at platform scopenametextgrants[Grant]where a copy came fromoriginalidoptionalwhat the role lets a person do, shown where a role is givenplain_wordstextthe tenant that copied the role; absent on a platform original, which every tenant hasowneridoptionalGRANTthrough grants
Role is a row at platform scope. The drawing shows its fields and the objects that they point at.
kind
row
scope
platform
key
its name and its owner
store
postgres
family
people

Fields#

fieldtyperequirednote
nametextyes
grantsGrantyes
originalidnowhere a copy came from
plain_wordstextyeswhat the role lets a person do, shown where a role is given
owneridnothe tenant that copied the role; absent on a platform original, which every tenant has

Routes that use it#

No route takes or returns Role directly. The record holds it, and the objects that point at it reach it.