Open hillu opened 7 years ago
If you follow through what grr_config_updater does with show_user, you'll come to ShowUser() in https://github.com/google/grr/blob/master/grr/lib/maintenance_utils.py.
from grr.lib import maintenance_utils
maintenance_utils.ShowUser(username=None)
Sorry for being unclear -- I meant: Is there a Web API to retrieve that information from outside programs?
Hi Hilko, We only have an API to fetch the data about your own user (via "/api/users/me"), not about other users in the system. We pretty much didn't have a use-case for the API to list users other than yourself. Can you please describe your use-case in a bit more details: how often do you need to fetch information about other users and how do you want to use it?
Cheers, Misha
On Mon, Mar 6, 2017 at 4:38 PM, Hilko Bengen notifications@github.com wrote:
Sorry for being unclear -- I meant: Is there a Web API to retrieve that information from outside programs?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/google/grr/issues/478#issuecomment-284432259, or mute the thread https://github.com/notifications/unsubscribe-auth/AA3PFYgb85Rh0-Y5nq-FqQIUq8W2Eyhuks5rjChcgaJpZM4MUPh_ .
Can I somehow use the API to retrieve information about the GRR users and their labels? Currently, I am running
grr_config_updater show_user
and parsing its output, but that seems to incur a pretty high startup cost (between 2 and 3 seconds on a VM with SSD storage.) and I would rather not rely on parsing plain text output that may change at any time.