I had a few issues with this and getting it to work. I ended up reaching out to Atlassian for assistance.
The below Python script worked a treat for Jira and confluence.
First export the users from the cloud environment (Be sure to select "All users", "Group Membership" and "Pivot to Column'), then filter and create a separate CSV file of all the users and the groups that you wish to remove them from.
#Remove Users From Group
Hi @Darshil Kothari – Amelie from the Appfire team here. As Ashish mentioned, unfortunately, it's impossible to bulk-delete users via Confluence natively.
You could try the Confluence CLI app, which allows you to delete users in bulk. Let me know if you want to try it out, and I'm happy to pull together the steps!
Cheers, Amelie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Amelie,
Sure, thanks. Could you please share the steps, would like to try that too?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Darshil Kothari - what you would want to do is, run a command like this:
-a runFromUserList --common "--action removeUserFromGroup --userId @userId@ --group Developers"
Here you’re removing users from the so-called “Developer” group.
To refine the set of users in the list, you would use --field parameters as described in the documentation.
Alternatively, if you have a CSV or other external source of the users that need to be deleted, you could leverage the runFrom action for that data source (e.g., runFromCSV). The rest should be pretty much the same.
Let me know if it worked!
Cheers,
Amelie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Welcome to Atlassian Community!
Unfortunately, Jira/Confluence Cloud doesn't have the feature to bulk delete users from the instance or from a specific user group.
For this a feature to implement for Jira Cloud is already raised https://jira.atlassian.com/browse/JRACLOUD-8047
As a workaround, you can create a script using the REST API endpoint to Delete users:
DELETE /rest/api/3/user
Also, you can use a free third party add-in to bulk delete users. Please refer https://confluence.atlassian.com/cloudkb/remove-multiple-users-from-your-atlassian-cloud-site-1155467985.html#:~:text=Go%20to%20Atlassian%20Admin%20page,that%20need%20to%20be%20deleted to know more about the add-in.
Kindly let me know if this helps you.
Thank you,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just a note @Darshil Kothari - it sounded like you wanted to remove users from a group. Be careful with the "DELETE /rest/api/3/user" command that Ashish suggested, as it will delete the user completely, and not simply remove them from a group. If you want to use the Rest API to remove users from a Group without Deleting them, you should use:
DELETE /rest/api/3/group/user
Good luck!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.