Hello everyone,
I’m trying to receive alerts when an API Key needs to be rotated by our org security policy. To accomplish that, I first need to get the creation time of an API Key in Mongo Atlas, I didn’t find a way to retrieve this using the Administration API, but is available on the web console (Access Manager > Organization Access > API Keys).
When accessing the web console, the petition https://cloud.mongodb.com/orgs/{ORG_ID}/apiUsers
is the responsible to retrieve the Created
and the lastUsed
values, but this endpoint is not accessible using an API Key, just a session cookie.
Is there any way to get this values using an API Key?
Thanks.