Trying to assign a user to a team on AWX 15.0.1 using awx-cli/tower-cli, but it doesn’t seem to be able to find the requested objects:
$ tower-cli role grant --user 'billyjean@protonmail.com' --target-team '35' --type 'member'
Error: The requested object could not be found.
A similar attempt with the new awxkit:
$ ~/.local/bin/awx roles modify --user 'billyjean@protonmail.com' --target-team '35' --type 'member' --conf.host https://panel.topgunmatrix.com --conf.username admin --conf.password xxxxxxxxxxxxxxxxxxxx
usage: awx roles [-h] action ...
positional arguments:
action
list
get
optional arguments:
-h, --help show this help message and exit
awx roles: argument action: invalid choice: ‘modify’ (choose from ‘list’, ‘get’)
Does anyone know how to assign a user to a team using either of these?
Cheers,