Dynamic Visibility

Conditional Hide Guide

Conditional Hide Guide

Conditional Hide screenshot

What It Does

The Conditional Hide macro wraps content that should be visible to most users but hidden from a specific group or condition. Think of it as "hide this from X."

Step-by-Step Setup

  1. Click on edit button.
  2. Click + (Insert) → search for Conditional Hide.
  3. Write the content inside the macro body.
  4. In the config panel:
    • Set Match using to Any (hide if viewer matches any condition) or All (hide only if viewer matches all)
    • Under Users, search and select specific Confluence users to hide from (optional)
    • Under Groups, search and select Confluence groups to hide from (at least one user or group required)
  5. Click Save.
  6. In View mode, log in as a user who matches the condition - the content should be hidden for them

Multiple Conditions

You can stack multiple Conditional Hide macros to hide content from multiple groups. Each macro is evaluated independently.

Troubleshooting

SymptomLikely CauseFix
Content still visible when it shouldn't beWrong user or group selectedRe-open the macro config and verify the correct user/group is selected
Content hidden from everyoneSelected group includes all usersUse a more specific group or switch to individual user selection
Content visible in Confluence API responseExpected - conditional macros are UI-onlyUse page restrictions for access control
No effect in edit previewEdit mode shows all content regardless of conditionsSwitch to View mode to test