I came across and error which states “not authorized on admin to execute command” . I tried running the feature compatibility version command but it would not show me the output and just shows the error . Nor can i set it and i have to make these changes in DEV, TEST and PROD. I am not to run any queries against the Production database - i assume the db.commands would not any impact on a production instance of mongo? Would those db.commands count as a queries against the database or more so as an administrative task/command?
For content, I am using SSL connection and the current user - upon login - seems to an ‘external’ user and db .
Db.getUsers - empty results come up and querying the user which i log into shows they have a role of “USerAdeminAnydatabase” with db”admin”. I figure this would let me run the db.adminCommand on the admin DB but I still see the error above. Open to any suggestions. I figure I would create a super user “admin” on “admin” to query the feature compatibility version and then drop the user - but not sure what kind of impacts this would have. Open to any suggestions or ways of finding this version out if there is another