archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: storage service user roles can't be set from manage.py #1658

Open scollazo opened 8 months ago

scollazo commented 8 months ago

When creating/updating storage service users from the command line, using manage.py create_user, there is no command line switch to set/update the user role

Expected behaviour

Roles can be set when creating users from the command line

Current behaviour

The output of the cli command is:

usage: manage.py create_user [-h] --username USERNAME --email EMAIL --password PASSWORD --api-key
                             API_KEY [--superuser] [--version] [-v {0,1,2,3}] [--settings SETTINGS]
                             [--pythonpath PYTHONPATH] [--traceback] [--no-color] [--force-color]
                             [--skip-checks]

But when using the web UI to create a user, this option is available:

image

Steps to reproduce Create an storage user using manage.py

Your environment (version of Archivematica, operating system, other relevant details)

Archivematica storage service 0.21.0 on rockylinux 9


For Artefactual use:

Before you close this issue, you must check off the following: