Skip to main content

Permission token

Used to grant permission to multiple assets matching a pattern.

Pattern syntax

Pattern is tested against asset path - collection, directory and key. Internally uses minimatch therefore you can use * and ** wildcards for complex patterns.

For example:

  • * - matches everything
  • */* - matches all collections and all keys (no directory though)
  • */*/* - matches all collections, all single level directory and all keys
  • */**/* - matches all collections, all directories (any level) and all keys
  • image/* - matches only image collection and all keys
  • image/your_profile_id/* - matches only image collection, your_profile_id directory and all keys
  • image_*/**/* - matches all collections starting with image_, all directories (any level) and all keys