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

CLI: Disable users in confluence

Audun Jensen Apr 23, 2012

I need to disable a bunch of users and wonder if this can be done with CLI.

Browsing the documentation I see I can remove users or remove users from groups, but is there a way they can be disabled?

3 answers

1 accepted

1 vote
Answer accepted

The best way to disable them in this case would be to remove the users from any groups, specifically the confluence-users group. This will allow them to log in but they will not be able to view anything.

Agree and removeUserFromGroup is the action.

0 votes
Julie Driscoll Jun 12, 2013

I used the removeUserFromGroup action and specified confluence-users group. I realize this disables the account, but doesn't remove the user from other groups. Is there a way to get all of the groups to which the user belongs and remove them from all groups? I thought specifying --autoGroup would do it, but it errors with "Line must have both userID and group separated by comma". So the --file would need to contain a line for each group that a userid belongs to. Would be nice to extract that using CLI and then run the action removeUserFromGroupWithFile. Is that possible?

Ah, I see that I can query the DB to get the users' groups. I'll do that in order to generate a CSV list of users and their groups.

0 votes
Keith Weinheimer Jul 17, 2015

Does removing from all groups also remove them from license count?

Also someone with the necessary reputation please tag this to confluence-cli-command-line-interface

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

1,124 views 7 18
Read article

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