How to use
Example scripts can be used in one of 3 different ways:
- Directly via url: https://bitbucket.org/bob_swift/examples/raw/tip/confluence/beanshell/userByGroup.bsh
- Download to the script folder in your Confluence home directory and use script=#userByGroup.bsh
- Copy the script into the macro body
View source
Requirements
- Scripting for Confluence 4.3 or above
- Confluence 4.2 or above
Parameter | Required | Default | Discussion |
---|---|---|---|
groupName | not set | If not set, all groups/users will be shown. Specifying groupName restricts output to a single group |
All users in confluence-administrators
{beanshell:output=wiki|script=#https://bitbucket.org/bob_swift/examples/raw/tip/confluence/beanshell/userByGroup.bsh|groupName=confluence-administrators} {beanshell}
All groups
{beanshell:output=wiki|script=#usersbygroup.bsh} {beanshell}