Skip to main content

PolicyEntity

A kind of thing an ABAC policy can be attached to โ€” a project, an environment, a resource, and so on.

Every action in the policy catalog acts on exactly one entity, encoded as the prefix of the action id (project in project:view). Use policyEntities to enumerate every entity with its description when building a policy-authoring UI.

graphql
type PolicyEntity {
id: ID!
description: String!
}

Fieldsโ€‹

PolicyEntity.idย โ—ย ID! non-null scalar {#id}โ€‹

Stable identifier for the entity, matching the prefix of action ids (for example project, environment, resource_type).

PolicyEntity.descriptionย โ—ย String! non-null scalar {#description}โ€‹

Human-readable description of what this entity represents in Massdriver.

Returned Byโ€‹

policyEntities query

Member Ofโ€‹

PolicyAction object