This macro renders it's content only if current user is in the configured security group |
## @param SecurityGroup:title=Security group|type=string|required=true|desc=Security group to check for membership #if(${action.authenticatedUser} && ${userAccessor.hasMembership(${paramSecurityGroup}, ${action.authenticatedUser.name})}) ${body} #end |
Complete macro configuration looks like this
The info block with the message "Hello, you are in the group" will be shown only to the users who are in "confluence-administrators" group