Macro Security Configuration - 4.x
After upgrading or installing Macro Security for Confluence, navigate to the Global Configuration screen:
- Log in with the System Administrator Global Permission.
- Select Add-ons from the cog icon at the top right corner of your screen.
- Scroll down to Bob Swift Configuration on the sidebar.
- Select Macro Security. This navigates you to the 'Macro Security for Confluence - Configuration' page, which allows you to manage the required configuration.
Secured Macros
This tab contains a list of macros that have been secured, along with their restrictions (Key Concepts explain in detail how to use Macro Security restrictions). This screen allows you to add, edit, enable or disable, and delete entries. The following image succeeded by the details of the usage of each option on the page:
A. Restrict a Macro (Add)
You can add a new entry to either restrict a new macro or a new macro parameter by performing the following:
Enter the macro name by typing and selecting from the pick list, or enter the exact name of your macro. Note: The names are case sensitive.
Enter the user(s), group(s), space name, or space key (includes personal spaces) to which the macro is restricted.
Space keys are case sensitive. While adding a space key for macro restrictions, ensure that you search for the exact space key name.
- Click the Add button.
B. Import Macro Properties
You can replace your entire configuration as shown on the Secure Macros tab by doing the following. You must already have a valid properties file available that you created previously.
- Click the ellipses next to the Add button.
- Select Import Macro Properties from the available options. The Import Macro Properties dialog is displayed.
- Click Browse to browse and select the required properties file.
- (Optional) Select the Save local backup copy check box to save a local copy. This is saved to the download folders set in your browser's preferences
- Click Import to import the selected file. A successful import message is displayed.
C. Export Macro Properties
You can save your current configuration as shown on the Secure macros tab by exporting it to a properties file. This allows you to revert to it at a later point using the Import Macro Properties feature or load that configuration to another Confluence instance.
- Click the ellipses next to the Add button.
- Select Export Macro Properties from the available options. The Export Macro Properties dialog is displayed.
- Click Export and save the file when prompted, to export the enabled macro settings to a properties file.
D. Modify Restrictions (Edit)
You can modify an existing entry to add, change, or remove restrictions.
- Hover over the Macro Restrictions field.
- Click the pencil icon.
- Make your change(s).
- Click check mark to apply your modification.
E. Enable Macro (On)
To enable the restrictions on a specific macro, ensure that the Enable toggle switch is set to the "On" (green) position.
F. Disable Macro (Off)
Although you can disable Macro Security entirely via the Global Configuration tab, it is sometimes useful to disable entries individually. This allows you to disable the restrictions for an entry without losing its configuration in case you want to enable it in the future. It is also useful to disable the restrictions while testing. To disable the restrictions on a specific macro, ensure that the Enable toggle switch is set to the "Off" (gray) position.
G. Remove Entries (Delete)
You can remove an entry when you no longer need it. Use the Export Macro Properties feature to save your configuration before doing this.:
- Find the row that you would like to remove within the table.
- Click the delete icon.
Global Configuration
This tab contains global settings that control the behavior of the Macro Security app. Once saved, settings provided on this page are immediately applied.
Table: Configuration options explained
Option | Default | Description |
---|---|---|
Enable Macro Security | On | This configuration setting allows you to secure macros and macro parameters at a global level. Use the Secured Macros tab to secure individual macros and macro parameters. |
Help Us Improve the Product | On | As part of building awesome apps, we sometimes need to gather some usage data to continually improve. This app collects and sends some very basic data for us to process. No private user data or personally identifiable information is sent. View the documentation for more details on what is being sent. |