Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

awx cli cannot modify projects with the user of type Normal User that has required permissions on project. #15288

Open
5 of 11 tasks
snehald12 opened this issue Jun 20, 2024 · 0 comments

Comments

@snehald12
Copy link

snehald12 commented Jun 20, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to security@ansible.com instead.)

Bug Summary

With API patch request the project gets modified with normal user that has admin permission on project but when we use the AWX cli to modify projects using normal user with all permission set on project i.e admin, use, read, update it fails.

AWX version

4.5.1

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

N/A

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

The controller cli is on "4.4.7" version and results are same using awxkit "24.4.0" it exists with error message:

Steps to reproduce:

# awx --conf.host https://controller_url/ --conf.username <normal_username> --conf.password xxx projects modify ID --scm_branch=1.0.45 -k -s -vvv

awx: unrecognized arguments: --scm_branch=1.0.45 -k -s -vvv
usage: awx projects modify [-h] id

positional arguments:
id the ID (or unique name) of the resource

optional arguments:
-h, --help show this help message and exit

Expected results

Customer would like to modify the resources on the controller using normal users in same way they were able to modify the controller resources using admin user.

Actual results

Awx cli command run fails to modify project with Normal User that has an admin role assigned on the project.

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant