Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Get the created date for Ambari user via the API?

avatar
Visitor

I can get the following details from:

https://host.domain.com:port/api/v1/users/<user>;
 1 {
  2     "Users": {
  3         "active": true,
  4         "admin": true,
  5         "groups": [
  6             "<redacted>"
  7         ],
  8         "ldap_user": <redacted>,
  9         "user_name": "<redacted>",
 10         "user_type": "LDAP"
 11     },


There is no created date. Is there an API call for this? I don't want to have to resort to using our postgres backing DB, as we have limited users added that, and this hampers who can then run our audit tools.

1 ACCEPTED SOLUTION

avatar
@Michael DeGuzis

Currently, there is no way to get the user created date from the Ambari REST API. This will hopefully be a feature in Ambari 3.x.

View solution in original post

2 REPLIES 2

avatar
@Michael DeGuzis

Currently, there is no way to get the user created date from the Ambari REST API. This will hopefully be a feature in Ambari 3.x.

avatar
Visitor

Thank you for the confirmation. Until the, I suppose we can just head into postgres on an add-needed basis. I don't want to keep this postgres python code in, since it inhibits who can run the audit tool (only a specific service account).