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:
- In the Pangea Console, navigate to AuthZ >> Resource Types.
- Click + Resource Type. A Create Resource Type modal displays.
- Type a Name for the resource.
- Type Permissions that you want as actions to take on the resource. Create, Read, Update, and Delete are available by default.
- Type an action in the Permissions field and click + to create a new permission.
- 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.
-
Click the arrow beside the Relationships heading to expand the section.
-
Type a name in Resource Roles to add a role that can have permissions on the resource type and click Enter.
-
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.
-
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:
-
Click the pencil icon by the Resource Type to modify. The Edit Resource Type displays.
-
Click the arrow beside the Relationships heading to expand the section.
-
Type a name in Resource Roles to add a role that can have permissions on the resource type and click Enter.
-
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.
-
Click Save when the relations are defined.
Delete a Resource Type
Complete the following to delete a resource type in AuthZ:
- In the Pangea Console, navigate to AuthZ >> Resource Types.
- Click the (-) button beside the resource to delete.
- In the modal, type the name of the resource to confirm.
- Click Delete.
Was this article helpful?