DEV Community

Cover image for Documentation Roles and Permissions: A Practical Guide
Docstar
Docstar

Posted on Originally published at docstar.io

Documentation Roles and Permissions: A Practical Guide

DocStar gives every docs team a simple answer to "who can write, approve and publish our documentation?": three workspace roles (Owner, Admin, Member), a Read Only, Read & Write or Access Denied permission on each collection, and AI agents that only ever act with the signed-in person's own access. In this guide we show how to design documentation roles and permissions for a team that writes docs with people and AI agents, and how to let your coding agent audit and set up access for you in one prompt.

Why documentation roles and permissions matter now

A few years ago, the question was simple: who has edit access to the wiki? Today your docs feed far more than a website. In DocStar the same published collection powers your docs site, llms.txt, a hosted MCP server that AI assistants use to search your docs and call your API, and CLI commands for every endpoint. A wrong edit that goes live doesn't only confuse a reader. It can send an agent to the wrong endpoint.

At the same time, more people (and more agents) touch the docs: engineers updating endpoints, support writing FAQs, product writing changelogs, freelancers fixing a guide, and coding agents drafting pages from your code. Good roles and permissions answer three questions:

  1. Who can see each set of docs? Internal runbooks and public API docs need different audiences.

  2. Who can write? The people who own the content, not everyone in the company.

  3. Who decides what goes live? Edits should land as drafts and be published by someone who checked them.

How roles and permissions work in DocStar

DocStar keeps the model small on purpose, so anyone can understand it at a glance. It has two layers.

Layer 1: workspace roles

Role What they can do
Owner Full access to every collection and setting. The only role that can create and revoke API tokens. Can't be removed.
Admin Invites and removes members, changes roles, sets collection permissions and manages domain-based access.
Member Views and edits the collections they've been given access to. Can't invite or remove people.

Layer 2: collection permissions

For every Admin and Member, each collection gets one of three settings:

Permission Meaning
Read Only Can view the collection's content
Read & Write Can edit and create content
Access Denied Can't open the collection

A few rules make this safe by default. Owners always have full access. If no permission has been set for a collection, the person can read it but not edit it. When you invite a Member, every collection starts at Read Only. And you can only grant up to the access you have yourself. All of this is covered in Members and Roles.

Drafts and publishing: the built-in review step

In DocStar, editing and going live are separate steps. When you edit a published page, it goes back to draft and the live site keeps showing the last published version until someone publishes again. Every publish is recorded in Published History with who published it and when, and you can restore an earlier version from Version History. That gives you a natural "write, then approve" flow without extra tooling.

A simple roles model for docs teams

Here's the setup we recommend for most teams using DocStar:

Person Workspace role Collection permissions
Head of docs / engineering lead Owner or Admin Read & Write on all collections
Technical writers Member Read & Write on the collections they own
Engineers Member Read & Write on API reference collections, Read Only elsewhere
Support team Member Read & Write on the help center and FAQs, Read Only on API docs
Sales, marketing, everyone else Member Read Only, or Access Denied on internal collections
Freelancer or partner fixing one page Not in the workspace Edit via Link on that one page

Keep it boring: give write access by collection to the people who own that content, keep internal collections on Access Denied for anyone who doesn't need them, and turn on Edit via Link only for as long as the outside work takes. Anyone with that link can edit the page while the option is on, and their changes go into the page's draft, so you still review and publish them.

Let your AI agent set up documentation permissions in DocStar

DocStar is built for AI agents to do the work and people to make the calls. Member and permission management is part of the DocStar API, so a coding agent connected through the DocStar MCP can review who has access and, once you approve, apply the changes for you.

Step 1: Connect your agent to DocStar

Add the DocStar MCP server to Claude Code, Cursor, Codex or another assistant: https://mcp.docstar.io/mcp (or find DocStar in your assistant's connector directory). The first time the agent needs your workspace, you sign in to DocStar in your browser. There's no API key to copy. See Work with AI Assistants (MCP).

The important part for governance: the agent works only with the workspaces and collections your DocStar account can access, with the same permissions you have. A Member's agent can't hand out access, and nobody's agent can exceed its user's rights.

Step 2: Give it one prompt

Use the DocStar MCP to review access in our DocStar workspace. List every member with their role and their permission on each collection. Then propose a roles plan: writers get Read & Write only on the collections they own, engineers get Read & Write on our API reference collections, support gets Read & Write on the help center, and everyone else gets Read Only. Internal collections should be Access Denied for anyone outside the docs and engineering teams. Flag anyone with more access than their job needs. Show me the plan as a table and don't change anything until I approve it. After I approve, apply the changes and write a short "Docs roles and permissions" page as a draft in our internal collection so the team knows who owns what.

Step 3: What the agent does

  1. Reads the current state. It lists your collections, members, roles and per-collection permissions.

  2. Drafts a plan. It maps each person to the model above and highlights gaps, such as a former contractor who still has write access or an internal collection everyone can read.

  3. Asks before changing anything. The DocStar MCP shows you what it will create, change or publish and waits for your OK.

  4. Applies the approved changes. Role updates and collection permissions are set through the DocStar API, within your own access.

  5. Documents the rules as a draft. The "who owns what" page is saved as a draft. Nothing goes live until it's published.

Step 4: You make the judgment calls

The agent does the listing, mapping and clicking. You decide what only a person should decide:

  • Which collections are internal and who truly needs them.

  • Who gets Admin, since Admins can change roles and permissions.

  • Who should own API tokens. Only the workspace Owner can create and revoke them.

  • Whether a freelancer gets a workspace seat or just an Edit via Link on one page.

Add a publishing rule for your coding agents

Roles control who can publish. A short rule in your repo controls how agents should behave. Add a few lines to AGENTS.md or CLAUDE.md:

## Docs (DocStar)
- Update docs with the DocStar MCP (https://mcp.docstar.io/mcp).
- Save every change as a draft. Never publish unless a person asks.
- Only edit collections listed in docs/OWNERS.md.
Enter fullscreen mode Exit fullscreen mode

Because DocStar saves agent edits as drafts by default, this keeps the human approval step even when several agents work on the docs. For a full checklist on approving agent drafts, see How to Review AI-Written Docs Before They Go Live.

Keep it current

Access drifts the same way docs do. People join, change teams and leave; new collections get created. Make the access review a routine your agent runs:

Use the DocStar MCP to compare current workspace access with the roles plan on our "Docs roles and permissions" page. List anyone whose access doesn't match, any new collection without explicit permissions, and any page with Edit via Link still turned on. Propose fixes and wait for my approval.

Run it monthly, and whenever someone leaves the team. The User Activity Logs at the bottom of the Members page show recent invites, removals and role updates, so you can check what changed. You can pair this with a content check from How to Audit Your Docs with an AI Agent.

Prefer to click?

Everything above also works by hand. Click your workspace name at the bottom of the left sidebar, then Members. Use Invite Member to add someone and choose Admin or Member (for a Member, set each collection's permission before sending the invite). Use the Role column to change a role, Manage Permissions to change collection access, and Remove to take someone out of the workspace; removed people lose access immediately.

One note for SSO workspaces: members come from the other product's sign-in, so the Members page isn't available. Admins have full access, and other users can read content but not edit it.

Why teams choose DocStar

  • A model anyone can explain. Three roles and three collection permissions cover almost every docs team without a policy manual.

  • Agents never exceed their user. The DocStar MCP uses browser sign-in and the signed-in person's own permissions, so an agent can't grant access its user doesn't have.

  • Drafts first, publish on purpose. Edits, including agent edits and Edit via Link changes, land as drafts. Readers see the last published version until someone publishes again.

  • A record of who published what. Published History shows each published version, who published it and when, and lets you restore it.

  • One source for people and agents. The same collection feeds your docs site, llms.txt, your MCP server and the CLI, so controlling who publishes protects all of them at once.

FAQ

What roles does DocStar have? Three workspace roles: Owner (full access, manages API tokens), Admin (invites and removes members, changes roles, sets collection permissions) and Member (views and edits the collections they've been given). On top of that, each collection is Read Only, Read & Write or Access Denied for each Admin and Member.

Can an AI agent change permissions in DocStar? Yes, through the DocStar MCP and API, but only within the signed-in user's own access. You can only grant up to the access you have yourself, and the agent asks before changing anything.

How do I let someone fix one page without adding them to the workspace? Turn on Edit via Link for that page. They don't need a DocStar account, they can edit only that page, and their changes go into the draft for you to review and publish. Turn it off when the work is done.

Can I see who published a page? Yes. Published History lists every published version with the person who published it and the time, and you can restore any of them.

Get started free

Set up your docs team in minutes: invite your writers, give each collection the right owners, and let your AI agent keep access tidy. Get started free.


Originally published on the DocStar blog. Try DocStar free: https://docstar.io

Top comments (0)