Project

General

Profile

Actions

Feature #981

closed

Return user assigned roles via json API

Added by Corey Osman almost 13 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

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.

Actions #1

Updated by Ohad Levy almost 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?)

Actions #2

Updated by Corey Osman almost 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.

Actions #3

Updated by Ohad Levy over 12 years ago

  • Target version deleted (0.4)
Actions #4

Updated by Joseph Magen over 11 years ago

  • Status changed from New to Ready For Testing
  • Target version set to Bug scrub
Actions #5

Updated by Anonymous over 11 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF