Finally delete several users

152 views
Skip to first unread message

Christoph

unread,
Apr 21, 2020, 7:26:33 AM4/21/20
to BigBlueButton-Setup
Hello,

today, on my BigBlueButton server there were many registrations of users who are prohibited to get an account and even do not need one because they only want to be members of a conference, not owners. So, my question is if it is possible to reject the registrations of several users, and then finally delete their accounts, from the command line on the server instead of from the web front end. As from the web front end it is only possible to reject/delete one user at a time, rejecting/deleting many users takes a long time.

Regards
  Christoph

Franz Dietrich

unread,
Apr 21, 2020, 8:27:11 AM4/21/20
to bigbluebu...@googlegroups.com, Christoph
You can create users from the command line
(https://docs.bigbluebutton.org/greenlight/gl-admin.html#creating-an-administrator-account)
but afaik not delete them other than modifying the database manually.

Am 21.04.20 um 13:26 schrieb Christoph:
> --
> You received this message because you are subscribed to the Google
> Groups "BigBlueButton-Setup" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bigbluebutton-s...@googlegroups.com
> <mailto:bigbluebutton-s...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bigbluebutton-setup/d3023e35-991b-4f79-8624-7d1ba37d7e8e%40googlegroups.com
> <https://groups.google.com/d/msgid/bigbluebutton-setup/d3023e35-991b-4f79-8624-7d1ba37d7e8e%40googlegroups.com?utm_medium=email&utm_source=footer>.

Ahmad Farhat

unread,
Apr 21, 2020, 9:59:07 AM4/21/20
to BigBlueButton-Setup
You can do it through the rails console:

To permanently delete all users that are currently pending (make sure you approve any registrations that you want to accept first)

docker exec -it greenlight-v2 bash
bundle exec rails c
User.with_role(:pending).each do |us|
us.destroy(true)
end

Christoph

unread,
Apr 21, 2020, 11:15:18 AM4/21/20
to BigBlueButton-Setup

Is there also a role for users who have been deleted, but not finally deleted?

Ahmad Farhat

unread,
Apr 21, 2020, 12:11:11 PM4/21/20
to BigBlueButton-Setup
User.deleted.each..... should work

Christoph

unread,
Apr 23, 2020, 12:58:36 PM4/23/20
to BigBlueButton-Setup

Just to be sure, will this delete all the user's data from disk, if there is anything to delete? Not only remove the user's name from the user database?

Ahmad Farhat

unread,
Apr 23, 2020, 3:43:57 PM4/23/20
to BigBlueButton-Setup
It'll delete the user, the users rooms and the recordings for those rooms

Christoph

unread,
Apr 27, 2020, 3:34:53 AM4/27/20
to BigBlueButton-Setup

Great, both finally deleting deleted users and finally deleting pending users worked successfully. Thank you very much.

Can I do the same with banned accounts? Surprisingly, though the web interface shows the role "Banned" for banned accounts, User.with_role(:banned) surprisingly does not work.

Ahmad Farhat

unread,
Apr 27, 2020, 10:20:48 AM4/27/20
to BigBlueButton-Setup
with_role(:denied) is the query you'll want to use
Reply all
Reply to author
Forward
0 new messages