Confluence Hide Macro

Hi All,

 

I have seen the macro's self-referenced documentation: https://bobswift.atlassian.net/wiki/display/RUN/Hide+Macro

I want to use the macro to hide content from all but a few individuals. I tried using

literal = false
showif = myname:$user

but the content stays hidden.

Please provide a reference to examples hiding or showing content based on user identity.

 

 

Many Thanks!

Akash

2 answers

You could try the Visibility macro from ServiceRocket. It works for me.

The Hide macro works with regex matching and you are not going to get a match of myname with $user as both are text values unless you have this included in a run macro where user is one of your user defined variables. 

Milo's answer is appropriate if you are just changing view of content based on users and groups.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

1,020 views 23 13
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you