Hi,
I’m using sanity-plugin-media in a Sanity project integrated with React Router.
The plugin works fine overall, but I’ve run into an unexpected permission issue related to media tags.
Currently, only users with the developer role or higher (e.g., admin) in Sanity can create new media tags.
Users with editor-like roles can select existing tags, but they cannot create new ones.
This feels unintuitive, since:
- Creating and managing tags is usually a content/editorial task, not a developer-level responsibility.
- Requiring elevated roles to create tags forces us to give higher permissions to users who should not have access to schema, structure, or configuration changes.
Expected behavior
Editors (or any role with write access to media documents) should be able to:
- Create new media tags
- Assign them to images/assets
Ideally, tag creation should be controlled by document-level permissions rather than requiring developer or admin roles.
Actual behavior
- Users without developer or higher roles cannot create new tags
- No clear feedback is shown explaining why tag creation is blocked
Questions
- Is this behavior intentional?
- If so, is there a recommended way to allow tag creation for non-developer roles?
- Would you consider relaxing this restriction or making it configurable?
Happy to provide more details if needed (Sanity version, plugin version, roles configuration, etc.).
Thanks!
Hi,
I’m using sanity-plugin-media in a Sanity project integrated with React Router.
The plugin works fine overall, but I’ve run into an unexpected permission issue related to media tags.
Currently, only users with the developer role or higher (e.g., admin) in Sanity can create new media tags.
Users with editor-like roles can select existing tags, but they cannot create new ones.
This feels unintuitive, since:
Expected behavior
Editors (or any role with write access to media documents) should be able to:
Ideally, tag creation should be controlled by document-level permissions rather than requiring developer or admin roles.
Actual behavior
Questions
Happy to provide more details if needed (Sanity version, plugin version, roles configuration, etc.).
Thanks!