Hide If

Description

This macro will hide its contents from viewers if the context matches the parameters specified.

On Cloud, if you have large content consider breaking it into smaller chunks over multiple Hide If macros to avoid performance issues.

Notes about migration

Some legacy Macro parameters from Confluence Server are not supported yet. More details at our FAQ page. 

In Confluence Cloud, the legacy Macro parameters will be shown in a section that is accessible by showing and hiding the legacy field parameters dropdown.

If the migrated macro has no legacy parameters, the "Show legacy field parameters" dropdown will not be visible in the macro editor.

 Be aware that content is only hidden in the Confluence page view, and that the content is still available when editing a page, viewing page history, email notifications, etc. To truly secure sensitive information, consider using the Security & Encryption app instead.

Parameters

Name

Required

Migratable to Cloud?

Default Value

Description

Name

Required

Migratable to Cloud?

Default Value

Description

Match Using

 

  • (X)

 

 

  • YES

 

any

If set to "all", then all items listed must match.

Users

 

  • (X)

 

 

  • YES

 

 

The list of user(s) to match. Type the username and select from the dropdown option.

Authentication Type

 

  • (X)

 

 

  • YES

 

None

The user to match, using authentication type:

  • None - No authentication type is chosen.

  • Authenticated - The user is logged in.

  • Anonymous - The user is not logged in.

User Groups

 

  • (X)

 

 

  • YES

 

 

The list of user group(s) to match. Type the group name and select from the dropdown option. (Cloud only)

The group(s) to match, separated by comma or semicolon (Server and Data Center only).

e.g.: 'confluence-users' will match all logged in users.

Editor View

Macro Edit View

 

Notes

  • Not applicable.

Tutorial Examples