Feature #981
closed
Return user assigned roles via json API
Added by Corey Osman over 13 years ago.
Updated about 12 years ago.
Description
I need a way to check if a user has permissions to perform actions on foreman before executing those actions via the api. I would like to see some json code return that details what the user has access to.
You could always try to execute those commands and get a access denied 403 error?
What you are asking is basically allowed_to method over the api (something like a dry run?)
I am currently just handling access denied. However, in the future it would be nice to let the user know what they are allowed to do pertaining to my mobile app. This would be used as a precheck to determine what the user can't do so I can disable features.
- Target version deleted (
0.4)
- Status changed from New to Ready For Testing
- Target version set to Bug scrub
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Also available in: Atom
PDF