Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Script to add users to the group


I need to add 100 users to a group in Confluence.

Tried to find the script, which could do that, but no success.

Would appreciate a help or guidance (where to look).


1 answer

Whenever I've done this, I've used Confluence CLI to create a bash script.

Here's an example script:

## Copy to `~/src/bob-swift/confluence-cli-2.6.0`
## Open `~/src/bob-swift/confluence-cli-2.6.0/` & swap out the following line
## > java -jar `dirname $0`/lib/confluence-cli-2.6.0.jar "$@"
## for...
## > java -jar `dirname $0`/lib/confluence-cli-2.6.0.jar --server http://localhost:1990/confluence --user admin --password admin "$@"


$confluence --action addUserToGroup --userId "user1" --group "my-group"
$confluence --action addUserToGroup --userId "user2" --group "my-group"
$confluence --action addUserToGroup --userId "user3" --group "my-group"
$confluence --action addUserToGroup --userId "user4" --group "my-group"
$confluence --action addUserToGroup --userId "user5" --group "my-group"
$confluence --action addUserToGroup --userId "user6" --group "my-group"

You might need a newer version of the app though. 

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Confluence

Lessons and Learnings: Six Months of Working Remote [Discussion]

Hey there, folks! For most of us, the past six months- yes, you read that right- have been a journey. More people than ever before have pivoted to working remotely, and navigating being on-scre...

8,583 views 7 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you