User Guide
How to: Create Role-Based Content Visibility
A workflow for showing or hiding specific content sections based on who is viewing the page - without creating separate pages for each audience.
→ Conditional Show Guide · Conditional Hide Guide
When to Use This
| Scenario | Macro |
|---|---|
| Show admin-only notes inside a public runbook | Conditional Show (group = confluence-admins) |
| Hide internal pricing from external users | Conditional Hide (group = external-users) |
| Show different onboarding steps per team | Conditional Show (two blocks, different groups) |
Step 1 - Identify Your Groups
- Go to Confluence Admin → Groups (or Site Admin → Groups for cloud)
- Note the exact group name - Conditional macros are case-sensitive
- If a group doesn't exist, create it in Confluence Admin and assign the right users
Step 2 - Wrap Content with Conditional Show
To show content only to a specific group:
- Open the page in edit mode
- Select the content block you want to restrict
- Type
/→ Conditional Show → insert it (wraps the selected content) - In the config panel:
- Under Groups, search and select the Confluence group who should see this content
- Optionally add individual users under Users
- Set Match using to Any or All as needed
- Save the macro and Publish the page
- Test: log in as a group member (visible) and a non-member (hidden)
Step 3 - Wrap Content with Conditional Hide
To hide content from a specific group:
- Select the content to hide
- Type
/→ Conditional Hide → insert it - In the config panel, under Groups, search and select the group to hide from
- Publish and test
Step 4 - Stack Multiple Conditions on the Same Page
You can place multiple Conditional Show macros side by side to show different content to different audiences on the same page:
[Conditional Show - Group: engineering-team]
→ Engineering-specific setup steps
[Conditional Show - Group: product-team]
→ Product team workflow steps
[Content with no conditional macro]
→ Visible to everyone
Each block is independent - users in multiple groups see all content that matches any of their groups.
Verification Checklist
- Group name matches exactly (copy-paste from Confluence Admin)
- Tested with a user IN the target group (content shows correctly)
- Tested with a user NOT in the target group (content is hidden)
- Page published after saving macros