Confluence user macros are very helpful scripts you use on your server or data center instances.
If you run your own Confluence instance (Server or Data Center) you can 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 snippets 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 documentation here.
Along my work as a Confluence administrator I ran into several situations where native Confluence Server features did not offer what admins or users needed. Plugins were not available either or too expensive for the purpose. In many of those cases I found that 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.
This Confluence user macro lists all spaces for which 'Anonymous' has at least view permission.
This Confluence user macro adds an HTML5 audio control element to your page that can play MP3, OGG and WAV files.
This Confluence user macro adds a Bootstrap 3 styled button, supporting different colors and sizes, and linking to a URL.
This set of two Confluence user macros adds a Bootstrap like progress to your page, offering different coloring and animation options.
This set of Confluence user macros adds animated diagrams to your page based on Chart.js v2.
This Confluence user macro adds a headed panel to your page with several coloring options.
This macro lists all spaces for which the group 'confluence-users' has at least view permission.
This Confluence user macro adds a button group that toggles/expands/collapses all Expand sections on your page.
This Confluence user macro adds a sorted table with numbered rows for each member of a given group.
This Confluence user macro displays the user's local date and time offering several options. Use once per page.
This Confluence user macro allows you to set a different font incl. size and color for your page.
This Confluence user macro lists space permissions and page restrictions for the current page.
This Confluence user macro displays a panel with the profile info of a single user or all users of a group.
Creates a risk matrix based on an issue type, likelihood field and impact field from a linked Jira instance.
This Confluence user macro allows to show content only to certain users, groups or permissions.
This Confluence user macro lists users and groups having permissions to the current or given space.
This Confluence user macro lists all spaces in which a user has either View, Edit or Admin permission.
This Confluence user macro adds an HTML5 video control element to your page that can play MP4 and OGG files.