This macro hides content from users who are part of a specific group. It checks the user's groups and, if a match is found, sets the content to be hidden by setting the $textToHide variable to an empty string.
## Hide content if user is in the following group
## your group name in the $hideIfGroup variable
#set ($hideIfGroup="jira-admins-wombats-test")
## hidden text stored in the $textToHide variable
#set ($textToHide="<b>Text which is hidden from 'contractors'</b>")
## A bit of logic
#foreach ( $group in $user.groups ) ## go through each user's group
#if ( $StringUtils.equals($group.name, $hideIfGroup) ) ## compare with target
#set ($textToHide="") ## Set empty if user is in group
#end
#end
$textToHideShow specific content to users in a particular Confluence group
Compare unique and common groups between two users
Display issues using a custom JQL filter
Display a personalized greeting message for a logged-in user
Show confetti bursts and a motivational message upon saving an edited page
Add a configurable tile to a Confluence page
Read and display the fixed version of Confluence pages by checking page or ancestor labels
Find images within page attachments. Handy for reusing files and updating them all at once.
Generate IDs in Base32 format
Embed a typo-tolerant search bar directly into Confluence pages to find, highlight, and jump to specific content