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: