-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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 schedules create cannot create schedule if the user is of type Normal User with required permissions. #5717
Comments
Confirmed, this is an API permissions bug that prevents normal users from ever doing a
|
a side effect of this bug is that `awx schedules create` doesn't work properly for non-admin users (i.e., users who have execute access for a JT) see: ansible#5717
@ryanpetrello I am trying this out locally, first w/ an org admin, and I notice if the org admin has at least one job template, it can see the |
Now works w/ org admin as expected. For a regular user with |
Same story w/ regular user with |
I guess part of me was thinking that creating a schedule to execute/run a resource is equivalent to using it "ad-hoc" therefore having Wiling to be proven wrong |
All other cases are passing...so just have to decide what is right w/ normal user w/ use on Project |
It doesn't look to me like Projects or Inventory Sources allowed creating schedules with just "use" access before my recent changes. Here's what I get with a @AlanCoding @wenottingham are you aware of any exceptions to this? Here's a project and inventory source with "use" access: Here's the same requests with "update" access on both: |
Yea, this sounds a pre-existing bug to me; I don't see how my recent changes would've affected that. |
❓ so does that mean you want to fix that behavior before we close this out? |
Yep, I'd like to address it. Just haven't had time yet. |
ack |
I think this is actually working correctly @kdelee (cc @AlanCoding): |
Got tests worked out, this is working for me now. Closing |
ISSUE TYPE
SUMMARY
awx cli schedules create cannot create schedule if the user is of type Normal User with required permissions on the object or even with Organization admin role. Currently the user needs to be a System Administrator type to create the schedule. From the UI the Normal User with permission can create the schedule.
POST at the /api/v2/schedules/ endpoint is only available for the user with System Administrator type which is the endpoint used by awx schedules create command.
ENVIRONMENT
STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS
The text was updated successfully, but these errors were encountered: