How to remove admin role from user?

I want to transfer system admin rights from an existing user to a new user.

I have created a new user using the reset_admin.sh script, which worked out.

Now I want to downgrade the previous user with system admin privileges to an ordinary default user. How do I do that?

You can do it in the system admin panel.

To downgrade the previous user from system admin privileges to a regular user, you need to remove their admin rights, typically by modifying their group membership. If the system uses a group like sudo or wheel for admin rights, you can remove the user from that group using the gpasswd or deluser command (e.g., sudo deluser olduser sudo or sudo gpasswd -d olduser sudo). This will revoke their ability to execute administrative commands. After that, the user will only have regular privileges.

This is totally unrelated to my question, it’s not even about Seafile. In addition, it looks like an answer copied+pasted from an LLM generator.

Apparently I can not. As the system admin, I can

  • set the user to inactive
  • delete the user
  • reset the password
  • change name, login id etc.
  • force TFA

I can’t find any setting to revoke admin privileges.

My assumption is I’ll have to change something in the database tables, but I am not sure where and what.

P.S. I am running Seafile Community 11.0.13

Here is a screenshot: