Resource object

A Resource is an entity with an associated list of actions. The actions list enumerates all the valid operations that can be performed upon the Resource.

All Resources are stored in your Project's RBAC Policy. You can create and manage Resources in the Dashboard.

Check out the RBAC overview to learn more about Stytch's RBAC permissioning model.


Fields


resource_idstring

descriptionstring

actionsarray[strings]

OBJECT

{
  "resources": [
    {
      "actions": [
        "create",
        "read",
        "write",
        "delete"
      ],
      "description": "Documents are text files owned by a user who can grant access to others for collaboration.",
      "resource_id": "documents"
    },
    {
      "actions": [
        "read",
        "export",
        "share"
      ],
      "description": "Images are media files for sharing.",
      "resource_id": "images"
    },
  ]
}