Skip to content

Latest commit

 

History

History
35 lines (22 loc) · 1.11 KB

how-to-set-user-as-admin-user.md

File metadata and controls

35 lines (22 loc) · 1.11 KB

How to set a user as an admin user

You can use Magda acs-cmd command line utility to set your account as an Admin. Alternatively, if you already have a user with admin access, you can login and go to the "Admin / User Accounts" section to set / unset a user as an admin.

Installation

Please refer to acs-cmd utility NPM page for installation instructions.

Usage

Before start to use the acs-cmd utility, you need to:

  • Port forward the Magda database to local:
    • kubectl port-forward combined-db-postgresql-0 5432:5432
      • If you didn't install magda to the default namespace, you can use: kubectl port-forward -n [namespace] combined-db-postgresql-0 5432:5432

Prior to Magda v1.0.0, you should port-forward pod combined-db-0

To set a user as admin users:

acs-cmd admin set [userId]

Or remove admin status / role from the user:

acs-cmd admin unset [userId]

To find out the user id of your account, you can:

acs-cmd list users