Using Managed Service Accounts with MongoDB


In Windows environment can I run MongoDB under a Windows Managed Service Account? the main reason is there is a company policy about PWD expiration each 60 days, and we want to use Managed Service Account as this allow password updates transparent for the services using this type of account

Best regards

Yes you can, just give that service account the rigth permissions to manage resources that it will need


Can you guide the basic steps required to access MongoDB using a service/domain account. Currently I am accessing it using my local user/pwd.

Is there any config file changes required. What would be the connection string format to use, lets say connecting using compass UI.