I’m working with Rest API, to “automate” some operations with Ansible, trought URI Module and Jinja2.
I need to create a Project, and set permission to a specific user.
How can i do this with API V3? I can add user to a Project, but i can’t set the Role.. When i check trought the Web Interface, i see the user without role.
Best answer by AnishWalia20
1) List the roles using this API:
2) And then update the project using this API:
For assigning roles to users in the project, this should work, given you know which user to add and that is already configured through directory services.
You can find more details in Rest API explorer about the above. Let me know if this works.