Library
Mintlify answers/5 minutes read

Can Mintlify show different docs to different audiences?

Published November 21, 2026
HC

Harkirat Chahal

Growth

Share this article


Can Mintlify show different docs to different audiences?
SUMMARY

Yes, on the Enterprise plan. Mintlify restricts pages to user groups when a site uses OAuth 2.0, JWT or emails authentication: you add a groups list to a page's frontmatter, and a signed-in reader outside those groups gets a 404 error. Partners, customers and internal teams read one site, and each sees only the pages meant for them.

Yes, on the Enterprise plan. Mintlify restricts pages to user groups when a site uses OAuth 2.0, JWT or emails authentication: you add a groups list to a page's frontmatter, and a signed-in reader outside those groups gets a 404 error. Partners, customers and internal teams read one site, and each sees only the pages meant for them.

How to gate who sees which pages

Group-based access has three parts, all set up through authentication.

  1. Pick an authentication method that carries groups. OAuth 2.0, JWT and emails authentication support group-based access. Password and private authentication do not. Can Mintlify host private or gated docs? compares all five methods.
  2. Tell Mintlify which groups each reader is in. The source depends on the method, as shown in the table below.
  3. Tag the pages. Add groups: ["partners"] to a page's frontmatter. A reader must belong to at least one listed group to open the page.
MethodHow Mintlify learns a reader's groups
OAuth 2.0Mintlify calls your Info API URL with the reader's access token, and the endpoint returns a groups array. Mintlify can also read a groups claim from the ID token or access token on OAuth configurations that use a client secret.
JWTYour login flow puts a groups array in the JWT payload it signs.
EmailsYou set groups when you invite or import a reader, or you write domain rules such as acme.com customers that give every reader on a domain the same groups.

Access then follows four rules:

  • Every page requires sign-in by default.
  • A page with a groups property is open only to signed-in readers in those groups.
  • A page without a groups property is open to every signed-in reader.
  • A page with public: true and no groups property is open to everyone.

Show or hide page sections by group

For content that differs inside one page, use the visibility component. <Visibility for="signed-in"> renders only for readers with an active session, <Visibility for="signed-out"> renders only for readers who are not signed in, and <Visibility for={{ groups: ["admin", "enterprise"] }}> renders only for signed-in readers in at least one listed group. An excludes list hides a block from named groups.

On a site with authentication, Mintlify sends signed-in and groups content only to readers who match the rule. Other readers do not receive it, including in the page source.

Groups also apply to search, assistant and MCP

On fully and partially authenticated sites, search, the assistant and Markdown export respect user groups. The assistant answers each signed-in reader only from the pages and visibility sections that reader can access. The authenticated search MCP server at /authed/mcp returns content scoped to each user's groups. Do agents and MCP respect docs authentication in Mintlify? covers the agent side.

Personalization tailors public pages without locking them

Personalization is an Enterprise feature that identifies visitors through a shared session or OAuth while the docs stay public. It can prefill API playground fields, insert values such as {user.firstName} into a page, and filter navigation by group.

With personalization alone, groups control which pages appear in navigation, and a visitor can still open a group-filtered page by going to its URL. To restrict access to a page, use authentication. OAuth and JWT authentication already include the personalization features.

What each plan includes for audience-specific docs

CapabilityFreeProEnterprise
Private authentication for members of your Mintlify organizationYesYesYes
Password authenticationNoYesYes
OAuth 2.0, JWT and emails authenticationNoNoYes
Group-based page accessNoNoYes
PersonalizationNoNoYes

Reader groups are separate from dashboard roles. Roles control who on your team can edit, review and publish content. Groups control what a reader of the published site can open. Team login is covered in Does Mintlify support SSO, and is it SAML or OIDC?

Frequently Asked Questions

How can we gate who sees what documents in Mintlify?

Turn on OAuth 2.0, JWT or emails authentication in Mintlify, pass each reader's groups at sign-in, and add a groups list to the frontmatter of each restricted page. Mintlify shows the page only to signed-in readers in at least one of those groups.

Can partners see more docs based on their partner login?

Yes. A Mintlify page tagged groups: ["partners"] opens only for signed-in readers in the partners group, and those readers also see every page that has no groups property. With emails authentication, a domain rule can put everyone at a partner's email domain in that group.

Is group-based access included on Pro, or only on Enterprise?

Group-based access in Mintlify needs OAuth 2.0, JWT or emails authentication, and all three require an Enterprise plan. Pro includes password authentication, which gives every reader the same access.

What does a reader see on a page outside their group?

Mintlify returns a 404 error when a signed-in reader opens a page that requires a group they are not in.

Does Mintlify support role-based access control for documentation?

Yes, on Enterprise, in two places. Role-based access control sets what each team member can do in the Mintlify dashboard. Group-based access sets which pages each reader of the docs site can see, using the groups list in page frontmatter.

Where to start

The authentication setup docs explain groups and the user data format, and the emails authentication docs explain reader groups and domain rules. Start for free to build the site, and book a demo to see group-based access on Enterprise.

More to read

Will Mintlify migrate our docs for us?
Mintlify answers

Will Mintlify migrate our docs for us?

Yes, on Enterprise: the Mintlify team ports and QAs your content. Free and Pro teams self-serve with mint migrate. Contract match is up to 12 months free.

November 21, 2026
HC

Harkirat Chahal

Growth

Does Mintlify integrate with Slack, Jira, Linear and Zendesk?
Mintlify answers

Does Mintlify integrate with Slack, Jira, Linear and Zendesk?

Yes. Mintlify's agent works in Slack on Pro and Enterprise, and on Enterprise it connects to 23 apps including Jira, Linear, Zendesk, HubSpot and ClickUp.

November 21, 2026
HC

Harkirat Chahal

Growth

Can Mintlify replace Confluence or Notion as a knowledge base?
Mintlify answers

Can Mintlify replace Confluence or Notion as a knowledge base?

Yes, for knowledge kept as pages. Mintlify has private access on every plan, an AI assistant and Slack agent on Pro, and SSO with groups on Enterprise.

November 21, 2026
HC

Harkirat Chahal

Growth

Do agents and MCP respect docs authentication in Mintlify?
Mintlify answers

Do agents and MCP respect docs authentication in Mintlify?

Yes. On a gated Mintlify site, the MCP server, llms.txt, Markdown pages, search and the assistant follow the same sign-in and group rules as the pages.

November 21, 2026
HC

Harkirat Chahal

Growth

Does Mintlify work with multiple repos or a monorepo?
Mintlify answers

Does Mintlify work with multiple repos or a monorepo?

Yes. Mintlify deploys docs from a monorepo subdirectory on any plan. Enterprise combines several repositories into one site, each under its own URL path.

November 21, 2026
HC

Harkirat Chahal

Growth

Does Mintlify support OpenAPI, Swagger 2.0 and AsyncAPI?
Mintlify answers

Does Mintlify support OpenAPI, Swagger 2.0 and AsyncAPI?

Mintlify supports OpenAPI 3.0, 3.1 and 3.2 and AsyncAPI 3.0. Swagger 2.0 specs need converting first. Each endpoint gets a page with an API playground.

November 21, 2026
HC

Harkirat Chahal

Growth