Rocket.Chat how to get Administrator Rights

Hello,

I’ve just installed Rocket.Chat and can log in as the “admin” user without any issues. However, this user doesn’t seem to have administrator rights, as the relevant administrator menu items – such as “User Management” – aren’t available. Question: Which user was set up during installation that has the relevant administrator rights? Thanks for your help!

Best regards, Ralf

Let me check, I thought this was working.

1 Like

When you say admin user, you mean that user is created in Syncloud Users app and is part of Syncloud group?

Yes, I have only one User “admin” in the Users App, and this user is part of the syncloud group. I didn’t know which user account to use for the rocket.chat applications, and while that user account worked, it unfortunately didn’t have the permissions to create additional users, for example.

What kind of device is this?
If it is arm64 cpu then rocket chat had some issues on it and we could not continue for now.

If that is the case there is not a lot we can do, you can try this manual user grant:

/snap/rocketchat/current/mongodb/bin/mongo.sh --quiet --eval 'db=new Mongo().getDB("rocketchat"); db.users.updateOne({username:"USERNAME"},{$addToSet:{roles:"admin"}})'

replace USERNAME with the Syncloud login

We may remove this app from arm64 app store channel.

1 Like

Hi Boris,

yes, this is a RaspberryPi device:

root@syncloud:~# cat /etc/*release*
PRETTY_NAME="Debian GNU/Linux 10 (buster)"
NAME="Debian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
root@syncloud:~# uname -a
Linux syncloud 6.6.20+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64 GNU/Linux

I have tried the command:

root@syncloud:~# /snap/rocketchat/current/mongodb/bin/mongo.sh --quiet --eval 'db=new Mongo().getDB("rocketchat"); db.users.updateOne({username:"admin"},{$addToSet:{roles:"admin"}})'
{ "acknowledged" : true, "matchedCount" : 1, "modifiedCount" : 0 }

I’m not sure, but “modifiedCount:0” means nothing was changed?

Anyway, I have logged in using User “admin” and now I can register my workspace and after the registration (send via E-Mail) I see the Administration Menu :upside_down_face:

It looks like this is a workaround for arm64 installations.

Thanks for your help on this!

Regards,

Ralf

Hi Boris,

one Info, I got the following warning in the Admin Area:

Version 6.9.2 Outdated - not supported

Is there a plan to upgrade to a supported version?

The iOS app is refusing to let me log in because it’s an old version.

Regards,

Ralf

Enabled arm64 but you will have to reinstall to get the latest version, then it will upgrade normally in future

Hi Boris,

That worked; I now have version 8.4.3. Even without the `snap` command, the Syncloud user “admin” can now see the admin area, and I can also create users.

However, I can’t log in with that user because the Rocket.Chat login page always just displays the message: “Login with Syncloud.”

At this point, I’m afraid I don’t understand how I can log in with a user I created within RocketChat. Can you help me with this?

Regards, Ralf

Actually we only support users created in Users app, as otherwise there will be a lot of conflicts between two sources of users. Can you create users in Users app?

Yes, I created the user “ralfb” in the Syncloud Users app. The user is a member of the “ralfb” group. When I enter this user, I briefly see the three dots indicating that the data is loading, and then the login screen reappears.

I also tried adding the “syncloud” group to the user “ralfb,” but I’m still seeing the same behavior.

Let me test that and fix

1 Like

Pushed another fix, this is about missing email for new users, made some default, try latest reocketchat.

I will probably migrate Users app to platform settings where it will be easier to set default user email for all apps instead of fixing each app.

Hi Boris,

Unfortunately, it still isn’t working, or maybe I just haven’t quite figured out how it’s supposed to work.

I reinstalled Rocket.Chat 775—is that the correct version?

Here’s what I did:

  • In Rocket.Chat created a new user named “ralfb” with an email address.
  • After creating the account, the status is “Pending.”
  • I tried to log in as this user “ralfb”.

After logging in, the following message appears:

Reset Password

The email has already been sent, but not yet confirmed. Please change your password

Unfortunately, I didn’t receive an email, and when I enter a new password and click “Reset,” nothing happens??

When I log in again as “admin,” I see that the status of ‘ralfb’ is now “Active.”

How does this relate to the Users app? I also have a user named “ralfb” there.

Question:

  1. What is the exact procedure for correctly creating a new user in Rocket.Chat?
  2. Do I have to setup SNMP settings in RocketChat?
  3. How do the users in the Users app relate to this?

Wait you should not create user inside reocketchat, just create user in Users app and then login with that user to reocketchat.
Try a new user as an example which is not in reocketchat first.

1 Like

OK, here’s what I’ve done so far:

  1. Removed user “ralfb” from the Users app
  2. Uninstalled and reinstalled the RocketChat app
  3. Created user “ralfb” in the Users app
  4. Opened the RocketChat app and logged in as user “admin”: OK
  5. Logged out of user “admin” and logged in with user “ralfb”: OK

Sorry I didn’t understand it the first time around; now I realize what you meant. User management is handled entirely through Syncloud’s Users app. I can create new users in the Users app and then use them in RocketChat.

Question: But does that also mean the user shouldn’t change their password in RocketChat?

Regards,

Ralf

Correct users are external to all apps, otherwise single sign on will not work.
It is like when you login to a site with Google account, website does not know your password only Google knows. Same here, but better as you control Syncloud device.

1 Like

Thanks a lot Boris for your support and your explanation!