Skip to content

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

Open
Combs7th wants to merge 3 commits into
v11.8-documentationfrom
claude/issue-9032-20260613-0052
Open

Document v11.8.0 membership policies, recommended channels, leave confirmation, and policy simulation#9036
Combs7th wants to merge 3 commits into
v11.8-documentationfrom
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

lieut-data and others added 2 commits June 12, 2026 12:04
…9029)

* Remove CJK search feature flag mention now that it defaults to true

* Clarify CJK search defaults to true on v11.9, flag-gated on v11.5-v11.8

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…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

📝 Walkthrough

Walkthrough

This PR documents Mattermost v11.8.0 membership policy features across admin and end-user guides, covering policy configuration and simulation, public-vs.-private channel behaviour differences, resource-level file permission policies, the Recommended filter, and leave confirmations 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
Clarifies self-service access rules apply to private channels, introduces new "Public and private channel behavior" section explaining membership policy enforcement differences (advisory/add-only for public channels, enforced remove/add for private), documents Channel-level permission policies (file upload/download), and expands "Simulate access" documentation (v11.8.0) with step-by-step preview of allowed/denied outcomes and draft rule evaluation behaviour.
End-user channel experience with membership policies
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
Describes the Recommended filter for policy-matched public channels (v11.8.0), distinguished member-add behaviour (filtering for private channels, tagging for public), and the leave confirmation flow for policy-added public channels with options to Leave, Mute instead, or Cancel depending on mute state.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Possibly related PRs

  • mattermost/docs#8951: Both PRs update ABAC membership-policy documentation to explain public-vs.-private channel behaviour (public/advisory add-only vs. private/enforced remove/add), with this PR's new "Public and private channel behavior" section building directly on the policy enforcement distinctions from that earlier work.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main changes covering membership policies, recommended channels, leave confirmation, and policy simulation for v11.8.0.
Description check ✅ Passed The description relates directly to the changeset, covering membership policy behaviour, permission policies, simulation features, and UI elements documented.
Linked Issues check ✅ Passed The PR comprehensively addresses all key requirements from issue #9032: membership policies on public/private channels, simulation experience, recommended channels/tags, leave-confirmation modal with Mute option, and file permission policies.
Out of Scope Changes check ✅ Passed All changes are directly scoped to documenting Mattermost v11.8.0 ABAC and membership policy features as specified in issue #9032; no unrelated modifications detected.
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 on lines +65 to +78
Simulate access
~~~~~~~~~~~~~~~~

Select **Test access rule** to test the rule against your user base to return how many users would be granted access to the channel based on the current rule. Test your rules to ensure the intended scope and avoid unexpected access changes.

From Mattermost v11.8.0, you can use **Simulate access** to preview allowed and denied outcomes for specific users before saving policy changes:

1. Open the policy editor in the System Console.
2. Select **Simulate access**.
3. Choose the users you want to test.
4. Review the allowed and denied outcomes by action, such as joining a channel or uploading and downloading files.
5. Adjust the rules before saving.

Simulation can test draft policy changes before they affect live channel access or file permissions. Detailed rule and attribute information is shown only when the denial comes from the policy or scope you're editing; otherwise, Mattermost may show that access was denied by another policy.

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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Rewrite the lead-in to match Simulate access.

The opening sentence still talks about testing against the whole user base and counting granted users, which no longer matches the per-user pre-save simulation described below. Readers will get two different mental models for the same feature.

🤖 Prompt for 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.

In `@source/administration-guide/manage/admin/abac-system-wide-policies.rst`
around lines 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.

Comment on lines +112 to +120
Leave a public channel added by a membership policy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

From Mattermost v11.8.0, when you leave a public channel you were added to by a membership policy, Mattermost asks you to confirm:

- Choosing **Leave channel** removes you from the channel.
- Choosing **Mute instead** keeps you in the channel and mutes its notifications.

If the channel is already muted, Mattermost shows **Cancel** and **Leave channel** instead of **Mute instead**. No newline at end of file

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.

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Mention the recommendation side-effect.

The leave-confirmation text explains Leave channel vs Mute instead, but it doesn't tell users that leaving can also remove the channel from Recommended. That missing context is why the mute option exists for policy-added public channels.

✏️ Suggested addition
 From Mattermost v11.8.0, when you leave a public channel you were added to by a membership policy, Mattermost asks you to confirm:
 - Choosing **Leave channel** removes you from the channel.
 - Choosing **Mute instead** keeps you in the channel and mutes its notifications.
+- Leaving may also remove the channel from **Recommended** results tied to the policy.

Based on the PR objective, this flow should also tell users that leaving may remove the channel from Recommended.

📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Leave a public channel added by a membership policy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From Mattermost v11.8.0, when you leave a public channel you were added to by a membership policy, Mattermost asks you to confirm:
- Choosing **Leave channel** removes you from the channel.
- Choosing **Mute instead** keeps you in the channel and mutes its notifications.
If the channel is already muted, Mattermost shows **Cancel** and **Leave channel** instead of **Mute instead**.
Leave a public channel added by a membership policy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From Mattermost v11.8.0, when you leave a public channel you were added to by a membership policy, Mattermost asks you to confirm:
- Choosing **Leave channel** removes you from the channel.
- Choosing **Mute instead** keeps you in the channel and mutes its notifications.
- Leaving may also remove the channel from **Recommended** results tied to the policy.
If the channel is already muted, Mattermost shows **Cancel** and **Leave channel** instead of **Mute instead**.
🤖 Prompt for 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.

In `@source/end-user-guide/collaborate/join-leave-channels.rst` around lines 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.

@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.

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

2 participants