diff --git a/src/freedombone-utils-mongodb b/src/freedombone-utils-mongodb index 60cc23b4..b6a96554 100755 --- a/src/freedombone-utils-mongodb +++ b/src/freedombone-utils-mongodb @@ -152,5 +152,5 @@ function create_database_mongodb { app_name="$1" app_admin_password="$2" app_admin_username=$3 - mongo admin --eval "db.createUser({user: '$app_admin_username', pwd: '$app_admin_password', roles: [ { role: 'dbOwner', db: '$app_name' } ] })" + mongo admin --eval "db.createUser({user: '$app_admin_username', pwd: '$app_admin_password', roles: [ { role: 'userAdminAnyDatabase', db: 'admin' } ] })" }