Skip to content

Commit 4e1ab40

Browse files
authored
DRIVERS-1996: Granted backup and restore roles to users (#288)
These permissions are necessary to work with non-system collections in the "local" database.
1 parent e0a9fe8 commit 4e1ab40

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mongo_orchestration/common.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ class BaseModel(object):
5959
{'role': 'userAdminAnyDatabase', 'db': 'admin'},
6060
{'role': 'clusterAdmin', 'db': 'admin'},
6161
{'role': 'dbAdminAnyDatabase', 'db': 'admin'},
62-
{'role': 'readWriteAnyDatabase', 'db': 'admin'}
62+
{'role': 'readWriteAnyDatabase', 'db': 'admin'},
63+
{'role': 'restore', 'db': 'admin'},
64+
{'role': 'backup', 'db': 'admin'}
6365
]
6466
socket_timeout = DEFAULT_SOCKET_TIMEOUT
6567

0 commit comments

Comments
 (0)