Actions
Feature #981
closedReturn user assigned roles via json API
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.
Updated by Ohad Levy over 13 years ago
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?)
Updated by Corey Osman over 13 years ago
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.
Updated by Joseph Magen over 12 years ago
- Status changed from New to Ready For Testing
- Target version set to Bug scrub
Updated by Anonymous over 12 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset d076d5731d733bbc6210c81d3b11ed7d2ba8b9d7.
Actions