# awx-cli, can't assign user to team

**URL:** <https://forum.ansible.com/t/awx-cli-cant-assign-user-to-team/34486>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [January 21, 2021, 8:23am UTC](https://forum.ansible.com/t/awx-cli-cant-assign-user-to-team/34486 "2021-01-21T08:23:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GoMatrix\_Hosting](https://avatars.discourse-cdn.com/v4/letter/g/cab0a1/32.png) [@GoMatrix\_Hosting](https://forum.ansible.com/u/GoMatrix_Hosting)\
**Post date:** [January 21, 2021, 8:23am UTC](https://forum.ansible.com/t/awx-cli-cant-assign-user-to-team/34486/1 "2021-01-21T08:23:55Z")

</div>

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](https://manpages.debian.org/testing/ansible-tower-cli/tower_cli.1.en.html#Organization_and_Team_Roles)

```auto

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

```auto
$ ~/.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,
