Actions
Feature #27430
closedAllow /users endpoint to return current user
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
Currently the Foreman API doesn't have a way to request the current user. Doing some UI work in Katello, we would like this ability so that we can avoid showing buttons, etc. for actions the user doesn't have permission to do.
The User model would need only one small change to the scoped_search setup. After this change, you can do
`GET api/v2/users?search=id=current`
and the API would return the currently logged-in user.
Updated by The Foreman Bot over 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/6929 added
Updated by Jeremy Lenz over 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset 07c4fec4fb21373b249ff7337955bc4d5e55fd25.
Actions