Created 07-10-2017 05:02 PM
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.
Created 07-10-2017 05:24 PM
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.
Created 07-10-2017 05:24 PM
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.
Created 07-10-2017 05:26 PM
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).