Mattermost, Inc.

I delete my admin account in postgresql,can i rescue?

I delete my admin account because some problem.
can i rescue? or give another account to admin authority?

Hi VagrantPi,

If you have access to Mattermost on the command line, you can use the CLI to give a new account the system admin role.

./platform -assign_role -email="user@example.com" -role="system_admin"

If you need it, there’s more information about the CLI available here.

1 Like