Skip to content

Document v11.8.0 membership policies, recommended channels, leave confirmation, and policy simulation#9036

Open
Combs7th wants to merge 9 commits into
masterfrom
claude/issue-9032-20260613-0052
Open

Document v11.8.0 membership policies, recommended channels, leave confirmation, and policy simulation#9036
Combs7th wants to merge 9 commits into
masterfrom
claude/issue-9032-20260613-0052

Conversation

@Combs7th

Copy link
Copy Markdown
Contributor

Updates the ABAC / membership policy docs for Mattermost v11.8.0:

  • Public vs. private channel membership policy behavior (advisory public channels)
  • Channel-level file upload/download permission policies
  • Simulate access (pre-save policy simulation) in System Console and Channel Settings
  • Recommended Browse Channels filter and invite-flow Recommended tag
  • Leave-confirmation modal (Leave channel vs. Mute instead)

Resolves #9032

Generated with Claude Code

…firmation, and policy simulation

- Add public vs. private channel membership policy behavior, channel-level
  permission policies, and Simulate access to channel access rules docs
- Add Simulate access steps to system-wide policies docs
- Note membership policies, permission policies, and policy simulation in the
  ABAC configure-policies overview
- Add Recommended Browse Channels filter note for end users
- Distinguish public vs. private add-members behavior
- Document the leave-confirmation modal (Leave channel / Mute instead)

Resolves #9032

Co-authored-by: Combs7th <Combs7th@users.noreply.github.com>
@Combs7th Combs7th changed the base branch from master to v11.8-documentation June 13, 2026 01:05
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA d6d3dd0

@Combs7th Combs7th requested a review from isacikgoz June 13, 2026 01:07
@Combs7th Combs7th added 1: Dev Review Requires review by a core commiter 2: Editor Review Requires review by an editor labels Jun 13, 2026
@Combs7th Combs7th added this to the v11.8.0 milestone Jun 13, 2026
@Combs7th

Copy link
Copy Markdown
Contributor Author

Heya @isacikgoz - I have a draft ready for us covering the membership policy/public channel advisory behavior, recommended channel surfaces, leave confirmation modal, channel-level file upload/download permission policies, and Simulate access updates.

I tried to keep this minimal and focused on user/admin-visible behavior only. A few areas I’d especially appreciate review on:

  1. Whether the public channel advisory behavior is described accurately.
  2. Whether the Recommended filter/tag wording matches the shipped UI.
  3. Whether the leave confirmation wording is accurate, especially what happens after a user leaves a policy-added public channel.
  4. Whether the Simulate access entry points and behavior are described correctly.
  5. Whether any “Access Control” → “Membership Policy” terminology should be adjusted further.

If all is good, we'll get these merged in.

Thanks!

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 620c38c

@coderabbitai

coderabbitai Bot commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cca019bc-c335-4c2f-9e3e-05626d4903f8

📥 Commits

Reviewing files that changed from the base of the PR and between 355fd96 and ebe8199.

📒 Files selected for processing (2)
  • source/administration-guide/manage/admin/abac-channel-access-rules.rst
  • source/administration-guide/manage/admin/abac-system-wide-policies.rst
✅ Files skipped from review due to trivial changes (1)
  • source/administration-guide/manage/admin/abac-channel-access-rules.rst
🚧 Files skipped from review as they are similar to previous changes (1)
  • source/administration-guide/manage/admin/abac-system-wide-policies.rst

📝 Walkthrough

Walkthrough

Documentation updates for Mattermost v11.8.0 across six files. Admin docs clarify that self-service access rules apply only to private channels, add a new "Public and private channel behavior" section, expand "Simulate access" with step-by-step instructions and draft-rule evaluation, and introduce channel-level permission policies for file upload/download. End-user docs add the Recommended channel filter, member-addition behaviour distinctions, and the leave-confirmation flow for policy-added public channels.

Changes

Membership Policies and Channel Access Control Documentation

Layer / File(s) Summary
Admin policy configuration and simulation capabilities
source/administration-guide/manage/admin/abac-channel-access-rules.rst, source/administration-guide/manage/admin/abac-system-wide-policies.rst, source/administration-guide/manage/admin/attribute-based-access-control.rst
Rewrites the channel-access-rule entry to scope self-service rules to private channels only; inserts a new "Public and private channel behavior" section covering enforced add/remove for private channels and advisory add-only with Recommended surfacing for public channels; introduces "Channel-level permission policies" for file upload/download; expands "Simulate access" (v11.8.0) with ordered UI steps, draft-rule evaluation, and denial attribution. Admin overview bullets updated to reflect all v11.8.0 capabilities.
End-user channel experience with membership policies
source/end-user-guide/collaborate/browse-channels.rst, source/end-user-guide/collaborate/manage-channel-members.rst, source/end-user-guide/collaborate/join-leave-channels.rst
Adds a v11.8.0 note about the Recommended filter in Browse Channels for membership-policy-matched public channels; refines Add Members guidance to distinguish between private-channel filtering and public-channel Recommended tagging; adds a new "Leave a public channel added by a membership policy" subsection describing the Leave/Mute instead/Cancel confirmation prompt.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

Possibly related PRs

  • mattermost/docs#8854: Both PRs modify abac-channel-access-rules.rst and attribute-based-access-control.rst around membership policies, cross-references, and structural navigation.
  • mattermost/docs#8951: Both PRs update ABAC docs to document public vs. private channel behaviour for membership policies in the same documentation files, including advisory/add-only vs. enforced/add-remove distinctions.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main documentation changes: membership policies, recommended channels, leave confirmation, and policy simulation for v11.8.0.
Description check ✅ Passed The description is directly related to the changeset, covering all major features and updates being documented (membership policies, permission policies, simulation, recommended channels, and leave-confirmation).
Linked Issues check ✅ Passed The PR comprehensively addresses all coding requirements from issue #9032: membership policies on public/private channels, permission policies for file operations, simulate access feature, recommended channels/tags, leave-confirmation modal, and appropriate feature flag/license documentation.
Out of Scope Changes check ✅ Passed All changes are directly scoped to the v11.8.0 feature documentation objectives; no unrelated content updates or extraneous modifications are present.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-9032-20260613-0052

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@source/administration-guide/manage/admin/abac-system-wide-policies.rst`:
- Around line 65-78: The lead-in still describes testing a rule against the
whole user base and counting granted users; update that opening paragraph (the
line that starts "Select **Test access rule** to test the rule against your user
base to return how many users would be granted access...") to instead describe
the "Simulate access" feature as a per-user, pre-save simulation that previews
allowed and denied outcomes for selected users in the policy editor of the
System Console; keep references to "Select Test access rule" and "Simulate
access" and briefly note it previews per-user allow/deny outcomes before saving
rather than returning a user count.

In `@source/end-user-guide/collaborate/join-leave-channels.rst`:
- Around line 112-120: Update the "Leave a public channel added by a membership
policy" paragraph: after the sentences that explain the difference between the
"Leave channel" and "Mute instead" choices, add a concise sentence stating that
choosing "Leave channel" may also remove the channel from Recommended while
choosing "Mute instead" keeps you in the channel (and preserves its Recommended
status); reference the existing phrases "Leave channel" and "Mute instead" so
the new sentence is placed with those explanations.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 47564942-0780-4d86-ac74-46b6e5a0a0fd

📥 Commits

Reviewing files that changed from the base of the PR and between ea7ca0d and d6d3dd0.

📒 Files selected for processing (6)
  • source/administration-guide/manage/admin/abac-channel-access-rules.rst
  • source/administration-guide/manage/admin/abac-system-wide-policies.rst
  • source/administration-guide/manage/admin/attribute-based-access-control.rst
  • source/end-user-guide/collaborate/browse-channels.rst
  • source/end-user-guide/collaborate/join-leave-channels.rst
  • source/end-user-guide/collaborate/manage-channel-members.rst

Comment thread source/end-user-guide/collaborate/join-leave-channels.rst
@Combs7th Combs7th requested a review from wiersgallak June 13, 2026 02:14
@Combs7th

Copy link
Copy Markdown
Contributor Author

@wiersgallak - This one will need editor review as well after dev review is complete.

@Combs7th Combs7th requested a review from amyblais June 15, 2026 08:07
Comment thread source/administration-guide/manage/admin/abac-channel-access-rules.rst Outdated
Co-authored-by: Combs7th <Combs7th@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 56a7ce9

@Combs7th Combs7th requested a review from wiersgallak June 15, 2026 23:26
@amyblais amyblais changed the base branch from v11.8-documentation to master June 16, 2026 05:21
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA dfb361e

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 0e58f35

@amyblais

Copy link
Copy Markdown
Member

@isacikgoz Can you help give this a review for today's v11.8 release day?

@isacikgoz isacikgoz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good with some minimal adjustments.

Comment thread source/administration-guide/manage/admin/abac-channel-access-rules.rst Outdated
Comment thread source/administration-guide/manage/admin/abac-channel-access-rules.rst Outdated

Test rules
~~~~~~~~~~
Simulate access

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we explain these require enabling feature flags?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@claude - Please update to explain these require enabling feature flags as requested by Ibrahim's feedback above.

@claude claude Bot Jun 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude finished @Combs7th's task in 1m 49s —— View job


Task: Document feature flag requirement for v11.8.0 ABAC features

  • Read the relevant files for context
  • Determine which feature flags are required (and the accurate wording)
  • Update abac-system-wide-policies.rst (Simulate access / line 65)
  • Check whether sibling v11.8.0 sections need the same note
  • Commit and push (ebe8199)

What I found

The v11.8.0 changelog entry confirms the gating Ibrahim was asking about:

Added support for permission-action rules (file upload, file download) on channel-scope access control policies, with a new "Simulate access" modal in System Console and Channel Settings… Gated by the existing PermissionPolicies feature flag and the Enterprise Advanced license.

So Simulate access and the channel-level file upload/download permission policies are both gated by the PermissionPolicies feature flag (MM_FEATUREFLAGS_PERMISSIONPOLICIES), in addition to the Enterprise Advanced license. (The public-channel advisory/Recommended behavior itself only requires the license — no flag — so I scoped the note to the flag-gated features.)

What I added

A .. note:: in two places, matching the existing feature-flag phrasing used in user-attributes.rst (flag name + env var, link to the developer docs on enabling flags, and the Cloud-customer support path):

  1. abac-system-wide-policies.rst — end of the Simulate access section, where Ibrahim left his comment.
  2. abac-channel-access-rules.rst — end of the Simulate access section, which also covers the channel-level permission policies described just above it, so the requirement is visible in both admin docs.

Channel-level permission policies and Simulate access are gated by the PermissionPolicies feature flag (MM_FEATUREFLAGS_PERMISSIONPOLICIES) and require a Mattermost Enterprise Advanced license. See the Mattermost developer documentation for details on enabling feature flags in a self-hosted deployment. Mattermost Cloud customers can request this feature flag be enabled by contacting their Mattermost Account Manager or by creating a support ticket.

@isacikgoz @Combs7th — let me know if you'd prefer this phrased as an .. important:: block instead, or if the public-channel advisory/Recommended behavior is also behind a flag I should mention.

@Combs7th Combs7th Jun 17, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this update look okay to you, @isacikgoz?

@Combs7th Combs7th removed the 1: Dev Review Requires review by a core commiter label Jun 16, 2026
@Combs7th Combs7th requested a review from esethna June 16, 2026 17:37
@Combs7th Combs7th added the 1: Dev Review Requires review by a core commiter label Jun 16, 2026
Combs7th and others added 2 commits June 16, 2026 22:33
…ules.rst

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
…ules.rst

Co-authored-by: Ibrahim Serdar Acikgoz <serdaracikgoz86@gmail.com>
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 0540295

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 355fd96

… features

Add notes clarifying that Simulate access and channel-level file
upload/download permission policies are gated by the PermissionPolicies
feature flag (MM_FEATUREFLAGS_PERMISSIONPOLICIES) and require an
Enterprise Advanced license, per dev review feedback.

Co-authored-by: Combs7th <Combs7th@users.noreply.github.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA ebe8199

@github-actions

Copy link
Copy Markdown
Contributor

Newest code from mattermost has been published to preview environment for Git SHA 2ea2d32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1: Dev Review Requires review by a core commiter 2: Editor Review Requires review by an editor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document membership policies, public channel advisory behavior, and policy simulation

4 participants