Skip to main content

Resource Types

The resource types define the subjects that will act, the resources they will act upon, and the actions the subjects will have permission to do.

Relationships are also defined in the Resource Types page. Relationships identify how two resource types are connected, such as a file has a folder as a parent, a user is an owner of a folder, or a writer is an owner of the article they created. You can add multiple relationships in this modal.

Create a Resource Type

Complete the following to create a resource type in AuthZ:

  1. In the Pangea Console, navigate to AuthZ >> Resource Types.
  2. Click + Resource Type. A Create Resource Type modal displays.
  3. Type a Name for the resource.
  4. Type Permissions that you want as actions to take on the resource. Create, Read, Update, and Delete are available by default.
  5. Type an action in the Permissions field and click + to create a new permission.
  6. Click the X icon beside a permission name to remove existing permissions from the list.

You can also add relationships to this resource type in the Create Resource Type modal.

  1. Click the arrow beside the Relationships heading to expand the section.

  2. Type a name in Resource Roles to add a role that can have permissions on the resource type and click Enter.

  3. Define a relationship that two resource types can have (e.g. a folder is a parent of a file).

    • You can flip the relationship by pressing the icon of two arrows pointing in opposite directions.
    • There are two predefined options: is parent of, and is owner of. You can add custom relations by clicking the relation and typing a relation in the Add custom option field.
    • The relationship can be deleted by clicking the X button.
    • More relationships can be added by clicking the + Relation button.
  4. Click Save when the resource type is defined.

Add relations to an existing resource type

Follow these steps to add a Relation to this Resource Type:

  1. Click the pencil icon by the Resource Type to modify. The Edit Resource Type displays.

  2. Click the arrow beside the Relationships heading to expand the section.

  3. Type a name in Resource Roles to add a role that can have permissions on the resource type and click Enter.

  4. Define a relationship that two resource types can have (e.g. a folder is a parent of a file).

    • You can flip the relationship by pressing the icon of two arrows pointing in opposite directions.
    • There are two predefined options: is parent of, and is owner of. You can add custom relations by clicking the relation and typing a relation in the Add custom option field.
    • The relationship can be deleted by clicking the X button.
    • More relationships can be added by clicking the + Relation button.
  5. Click Save when the relations are defined.

Delete a Resource Type

Complete the following to delete a resource type in AuthZ:

  1. In the Pangea Console, navigate to AuthZ >> Resource Types.
  2. Click the (-) button beside the resource to delete.
  3. In the modal, type the name of the resource to confirm.
  4. Click Delete.

Was this article helpful?

Contact us