Support Questions
Find answers, ask questions, and share your expertise

Get the created date for Ambari user via the API?

Explorer

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

Accepted Solutions

Re: Get the created date for Ambari user via the API?

@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

Re: Get the created date for Ambari user via the API?

@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

Re: Get the created date for Ambari user via the API?

Explorer

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).