How to add macro restrictions to the personal space in the Macro Security for Confluence app

This article provides step-by-step instructions on how to add personal space and apps to the Macro Security for Confluence app.

Instructions

  1. Log into Confluence as an administrator.
  2. Go to your profile picture and click Personal space as shown:
  3. Create a page in that space and do the following:
    1. Click the Cog wheel , select Manage apps and expand the Macro Security app.
    2. Click Configure to see the Macro Security for Confluence Configuration page.
    3. From this page, you can add macros manually or import macros from the macro properties file.
      1. Adding macros manually:
        1. Enter the macro name and personal space key, and click Add. Make sure that the required macros are enabled as per your requirement.
      2. Importing macros from the properties file:
        1. Click , select Import macro properties and choose the required properties file with the macros that are to be imported.
    4. Go to the Global configuration tab and make sure the Enable macro security option is enabled.

  4. Go to the page that was created in step #3.
  5. Add the macros (SQL macro as per the given example) in the page and provide the required parameters.

You can now use the respective macro(s) in your personal space only. If the macro is used in a space other than the personal space, the following error is displayed: