awxkit, not sure how to bind a user to a team

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:

https://manpages.debian.org/testing/ansible-tower-cli/tower_cli.1.en.html#Organization_and_Team_Roles

$ 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,

Found a rough solution here but it’s not ideal as AWX might have several jobs queued up or might just be running too slow for it to happen in time: https://www.reddit.com/r/awx/comments/l1uafv/awxcli_cant_assign_user_to_team/

I was able to resolve the race condition i was having with it nicely, it’s not the end of the world if nobody answers this. :slight_smile: