Allow /users endpoint to return current user
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
and the API would return the currently logged-in user.