It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Why am I getting unknown macro when using {hide-from} and {show-to} macros?

Vivin Raj Aug 13, 2013

I want to hide content from particular users for which I am trying to use {hide-from} and {show-to}. But the preview gives me an error saying unknown macro. Can anybody help?

1 answer

1 accepted

1 vote
Answer accepted
Joe Clark Atlassian Team Aug 13, 2013

Hi Vivin,

"hide-from" and "show-to" are not included by default with Confluence. These macros are part of the Visibility Plugin, which is by a third-party vendor named ServiceRocket, not Atlassian.

To use these macros, you can install the Visibility Plugin from the Atlassian Marketplace: https://marketplace.atlassian.com/plugins/net.customware.confluence.plugin.visibility

Instructions on how you can add new add-ons to your Confluence server can be found in our documentation: https://confluence.atlassian.com/display/UPM/Installing+Add-ons

Also note that installing new add-ons is not permitted if you are using Confluence OnDemand. In this case, you will not be able to use those macros.

Vivin Raj Aug 13, 2013

Hi Joseph

Thanks a lot for the information. I am building a tool for my company and so I think they have Confluence OnDemand. So do you mean I cannot use these macros if I am using OnDemand? And is there any other default plugin supporting such features?

Thanks!

Joe Clark Atlassian Team Aug 13, 2013

You can tell if your company is using Confluence OnDemand by the Confluence URL. If the URL ends with ".atlassian.net" (eg. "https://mycompany.atlassian.net"), then it is Confluence OnDemand.

I'm not aware of any default alternatives. One thing you could try is to put the content you want to restrict in a separate page. Then, set the permissions on that restricted page so that it is only visible to the users who you want to see it.

You can then use the "Include page" macro to take the content of the restricted page and put it in another page, where it will only be visible to users who have permission to see the restricted page.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,296 views 8 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you