1. Home
  2. Docs
  3. Confluence
  4. Confluence User Macros

Confluence User Macros

What are Confluence User Macros ?

If you run your own Confluence instance (Server or Data Center) you can, as an administrator, create custom “User Macros”, little scripts that can be included in pages creating content on the fly. With those macros you can create simple HTML code as well as utilize Velocity code accessing information from your Confluence database.

I will not address the basics of writing a user macro here. That is well documented in the Confluence documenation here.

My User Macros

Along my work as a Confluence administrator I ran into several situations where native Confluence Server features did not offer what my admins or my users needed. Plugins were not available either or too expensive for the purpose. In many of those cases a user macro was just the right solution to the challenge. The Confluence user community helped me a lot writing them. Here are my most useful ones as my contribution back to that community.

Installing User Macros in Confluence (Server or Data Center)

Note: User Macros are not available in Confluence Cloud!

  1. Login as administrator
  2. Go to “General Configuration”, then select “User Macros” from the menu on the left
  3. Scroll down to the bottom and click on “Create a User Macro”
  4. Enter the appropriate Macro Browser Information
  5. Select the macro body option according to the macro you want to add
  6. Paste the macro source code into the Template field
  7. Click Save



Was this article helpful to you? Yes No