This macro checks if the current user belongs to a specified group, and if so, displays a block of content. It uses a foreach loop to iterate through the user's groups and compares them with the target group using $StringUtils.equals().
## Show content if user is in the following group
#set($adminGroup = "site-admins") ## Your group name in this line
#foreach ( $item in $user.groups )
#if ( $StringUtils.equals($item.name,$adminGroup) )
## Text below will be printed
<b>Text that will be shown only to site admins</b>
#end
#endShow filtered issues and their relations
Filter Confluence groups based on a specified filter value and display the results in different formats
Show confetti bursts and a motivational message upon saving an edited page
Hide specific content from users in a particular Confluence group
Display Jira issue comments in a table
Show worklogs from Jira issues
Display a list of Confluence pages with a CSV download feature
Retrieve and display labels from a specified space
Display a list of clickable labels for a specified page tree
Show H1 headings for child topics to enable easy navigation