Interface AccessDetermination

The result of an access determination operation.

interface AccessDetermination {
    accessibleVia?: Role[];
    allowed: boolean;
    reason?: string;
}

Properties

accessibleVia?: Role[]

If the user could access this resource using another role, this field may contain the roles.

allowed: boolean

Whether the user is allowed to access the resource with the given intent.

reason?: string

If the user is not allowed to access the resource, this field may contain a human-readable explanation of why. If the user is allowed to access the resource, this field will be omitted.