How do I find the creation date of a user in MongoDB? As background, I'm used to doing this in relational databases like Oracle or MSSQL.
I've checked the admin.system.users table, as I thought I might be able to decode the _id
in case it were a generated ObjectID
, but no luck there, as it uses the {db}.{username} as the _id
.
I could probably stuff the current timestamp into the customData
field at user creation, but that would not be as reliable as the data dictionary queries I'm used to from the RDBMS cousins. I would need to make sure all other DBAs follow the practice (not too hard, but prone to human error), but also make sure any 3rd party tools that do user administration (IDM) functionality follow suit (not easy).