Navigation

Unsupported Commands in M10+ Clusters

Atlas requires clients to authenticate to access an Atlas cluster. Atlas provides a curated list of Database User Privileges. These privileges provide access to a subset of MongoDB commands.

The following table lists the most common commands and shell methods that database user privileges do not support. The functionality provided by these commands are largely subsumed by Atlas, or are restricted to ensure cluster stability and performance.

CommandsShell Method
applyOps
replSetFreezers.freeze()
replSetInitiaters.initiate()
replSetMaintenance
replSetReconfigrs.reconfig()
replSetResizeOplog
replSetStepDownrs.stepDown()
replSetSyncFromrs.syncFrom()
resync
CommandsShell Method
sh.disableBalancing()
sh.enableBalancing()
mergeChunks
removeShard
refineCollectionShardKey [1]
[1] This command is not supported on global write clusters only.
CommandsShell Method
createUserdb.createUser()
getUser [2]db.getUser() and db.getUsers() [2]
dropUserdb.dropUser()
grantRolesToUserdb.grantRolesToUser()
revokeRolesFromUserdb.revokeRolesFromUser()
updateUserdb.updateUser()
createRoledb.createRole()
dropRoledb.dropRole()
updateRoledb.updateRole()
[2](1, 2) You can call getUser for your own user account.
CommandsShell Method
setParameter

db.setLogLevel()

Others that use setParameter.

logRotate
shutdowndb.shutdownServer()
evaldb.eval()
fsyncdb.fsyncLock()
setFeatureCompatibilityVersion

Atlas doesn't support the $planCacheStats aggregation pipeline stage.

MongoDB versions 4.2 and later do not support the following commands and methods:

CommandsShell Method
parallelCollectionScan
clonedb.cloneDatabase()
copydbdb.copyDatabase()

Please contact Atlas support if your use case requires access to a command not currently supported by the existing Atlas database user privileges.

Give Feedback