Cerbos JavaScript SDK
    Preparing search index...

    Interface RolePolicyBody

    A policy defining rules for actions that can be performed by a given role.

    interface RolePolicyBody {
        parentRoles?: string[];
        role: string;
        rules: RoleRule[];
        scope?: string;
    }
    Index

    Properties

    parentRoles?: string[]

    The list of parent roles that a custom role inherits.

    role: string

    The role to which this policy applies.

    rules: RoleRule[]

    Rules defining the actions that can be performed by the role.

    scope?: string

    Scope of the policy.