releases.sh

Manage: Define custom roles using a visual builder

Unknown block type "docsPaidFeature", specify a component for it in the `components.types` option

Content Resources define the set of documents a custom role grants access to. Now when defining a content resource, a visual builder will autogenerate the necessary GROQ filter based on your deployed schema.

A filter setup for content resources, comparing a user's 'brand' attribute to a document's 'brand' field, with a generated GROQ query visible.

The visual builder takes you through three steps:

  1. Set the name and description for this resource
  2. Select which document types to match
  3. Create filter conditions to match specific documents

When creating a filter, each condition can compare the value of different document fields. Select User attribute —> document field to build a filter that dynamically matches documents based on the attributes of users who get assigned this role.

Protip

If you don’t see the document type you’re looking for (or you’re not given the option to select any document types), then you need to deploy your studio schema first.

Fetched July 29, 2026

Manage: Define custom roles using a visual builder —… — releases.sh