Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
## @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


Example usage

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