Using the Macro Security Macro to Control User Macros
Parameters
The Macro Security macro accepts 3 parameters.
Example 1 - Basic Use
This example demonstrates how to add support for a user macro named "restricted" that uses only Use Restrictions. A trusted user or group will be able to add this user macro to a page; other (non-trusted) users and groups will be able to view the page but not edit it. Learn more about Use Restrictions on the Understanding How Macro Security Works page.
There are two steps:
Editing and reloading the Macro Security properties file so it contains a Use Restriction entry for the user macro. This entry might look like this:
restricted = confluence-administrators
- Coding the user macro so that it invokes the Macro Security macro and then directs its processing based on what is returned from the Macro Security macro.
In the example above:
Log a request with our support team.
Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.