Home > @cerbos/core > Principal
A principal (often a user, but potentially another actor like a service account) to authorize.
Signature:
export interface Principal
Property |
Modifiers |
Type |
Description |
---|---|---|---|
Record<string, Value> | undefined |
(Optional) Application-specific attributes describing the principal. | ||
Record<string, Value> | undefined |
(Optional) Application-specific attributes describing the principal (deprecated). | ||
string |
A unique identifier for the principal. | ||
string | undefined |
(Optional) The policy version to use when authorizing the principal. | ||
string[] |
The roles held by the principal. | ||
string | undefined |
(Optional) The policy scope to use when authorizing the principal. |