Creation of User with GMV-CLI administrator role

Good afternoon, everyone,

I’ve attempted several times to create and update a user to assign them the administrator role via GVM-CLI, as I don’t have access to a graphical interface. I used the following command:

gvm-cli socket --xml "<create_user><name>kali</name><password>kali2024</password><preferences/><roles role_id='7a8cb5b4-b74d-11e2-8187-406186ea4fc5'/></create_user>"

After listing the users with:

gvm-cli socket --xml "<get_users/>"

and retrieving the roles with:

gvm-cli socket --xml "<get_roles/>"

I’ve confirmed that the user is created, but the specified role is not assigned.

I also tried updating the user and assigning the administrator role with the following command:

gvm-cli socket --xml "<modify_user><users user_id='b5cc9733-bbcc-427a-afd5-469a074f560d'/><name>kali</name><roles role_id='7a8cb5b4-b74d-11e2-8187-406186ea4fc5'/></modify_user>"

Although the command executes successfully, when listing users again, the created user still doesn’t have the administrator role.

I would appreciate any insights on whether there’s an error in my commands or if GVM-CLI has limitations regarding user management and role assignment.

Thank you in advance for your help.