Skip to content

Accounts Management#

Adding an administrator account#

Access supports creating an account with the Administrator role. For more information about roles and accesses, see the Roles in the Service section in the User's Guide.

1․ Run the administrator creation script:

docker-compose exec fastapi python backend/manage.py createadmin

2․ Follow the console instructions:

(venv) [root@localhost vl-access-2]# docker-compose exec fastapi python backend/manage.py createadmin
Admin creation:
Enter your login: admin
Enter your password:
Confirm your password
Admin user created successfully

3․ Check if the administrator was created correctly. Log in to the created account: http://<IP_address>:9092/.

Viewing Account List#

1․ Run the command to view the list of created administrators:

docker-compose exec fastapi python backend/manage.py listadmin

A list of administrators will be displayed in the console:

(venv) [root@localhost vl-access-2]# docker-compose exec fastapi python backend/manage.py listadmin
admin
admin2

Deleting Account#

Get the login information for the account you need to delete using the view command.

1․ Run the command to remove the administrator:

docker-compose exec fastapi python backend/manage.py deleteadmin

2․ Enter the administrator login.

In response to the request, the console will display a message about successful deletion:

(venv) [root@localhost vl-access-2]# docker-compose exec fastapi python backend/manage.py deleteadmin
Admin deletion:
Enter your login: admin2
Admin was deleted successfully.