Ticket: Principle of Least Privilege

Hello, I need help with this. I created the user on Atlas with the requested privileged (though I couldn’t find anywhere that option mentioned in the guideline: " Use Add Default Privileges to assign the user this specific role") and did the corresponding thing with the SRV connection string in my configuration file. Because that user-edit option: “Add Default Privileges” was nowhere, I tried first creating a custom role with reads and writes for the DB: “sample_mflix”. However, the endpoint(“http://localhost:5000/api/v1/movies/config-options”) showed “admin” as db, not “sample_mflix”. I didn’t pass the test with this method. Then, I simply created a new user assigning access to all databases on my cluster. This didn’t work either. What am I doing wrong? Thanks in advance.

Please check this link

Ticket: Principle of Least Privilege

Thank you!