Unsupported Commands in Atlas (original) (raw)

Atlas M0 Free clusters, Flex clusters, and M2/M5 Shared clusters don't support all functionality available to other clusters. To learn more about M0, M2, and M5cluster limits, see Atlas M0 (Free Cluster), M2, and M5 Limits. To learn more about Flex cluster limits, see Atlas Flex Limitations.

Note

If you use an unsupported command or invalid syntax, Atlasreturns the following error message:


 <$command> is not allowed or the syntax is incorrect,

 see the Atlas documentation for more information.

To learn more about valid syntax, see Database Commands

You can run the following commands with limits in M0 Free clusters, Flex clusters, and M2/M5 Shared clusters:

Command Limit
aggregate Limits the maxTimeMs parameter to 300 seconds (300000).Ignores the allowDiskUsage parameter.Doesn't support $accumulator and$functionoperators.Doesn't support the $$USER_ROLES system variable.
count Doesn't support the $where operator.Limits the count operation on the local database to the system.replset and oplog.rs collections.
dbStats M0 Free clusters and M2/M5 Shared clusters don't allow the dbStats command on the local andconfig databases.To learn more, see Operational Limits.
distinct Doesn't support $where operator.
find Doesn't support the $where operator.Doesn't support the $$USER_ROLES system variable.Limits the find operation on the local database to the oplog.rs collection.Limits the find operation to using an equality condition when querying the ns field in the oplog.rs collection on the local database.{ "ns" : "test.foo" }
getParameter Limits execution to these two documents:{ "getParameter": 1, "authSchemaVersion": 1 }{ "getParameter": 1, "authenticationMechanisms": 1 }
db.killOp() Limits the db.killOp() method to the MongoDB user who ran the operation.
collection.updateOne() Doesn't support the $$USER_ROLESsystem variable.
collection.updateMany() Doesn't support the $$USER_ROLESsystem variable.
findAndModify Doesn't support the $$USER_ROLESsystem variable.
serverStatus Limits response to the following fields:$clusterTime.clusterTime$clusterTime.operationTime$clusterTime.signature.hash$clusterTime.signature.keyId$clusterTime.signatureasserts.msgasserts.regularasserts.rolloversasserts.userasserts.warningatlasVersion.gitVersionatlasVersion.versionconnections.availableconnections.currentconnections.totalCreatedextra_info.noteextra_info.page_faultshostlocalTimemem.bitsmem.mappedmem.mappedWithJournalmem.residentmem.supportedmem.virtualmetrics.atlas.bytesInWritesmetrics.atlas.connectionPool.totalCreatednetwork.bytesInnetwork.bytesOutnetwork.numRequestsokopcounters.commandopcounters.deleteopcounters.getmoreopcounters.insertopcounters.queryopcounters.updateopcountersRepl.commandopcountersRepl.deleteopcountersRepl.getmoreopcountersRepl.insertopcountersRepl.queryopcountersRepl.updatepidprocessrepl.electionIdrepl.hosts[]repl.ismasterrepl.lastWrite.lastWriteDaterepl.lastWrite.majorityOpTime.trepl.lastWrite.majorityOpTime.tsrepl.lastWrite.majorityWriteDaterepl.lastWrite.opTime.trepl.lastWrite.opTime.tsrepl.merepl.primaryrepl.rbidrepl.secondaryrepl.setNamerepl.setVersionrepl.tags.nodeTyperepl.tags.providerrepl.tags.regionrepl.tagsstorageEngine.backupCursorOpenstorageEngine.dropPendingIdentsstorageEngine.namestorageEngine.oldestRequiredTimestampForCrashRecoverystorageEngine.persistentstorageEngine.readOnlystorageEngine.supportsCommittedReadsstorageEngine.supportsPendingDropsstorageEngine.supportsSnapshotReadConcernuptimeuptimeEstimateuptimeMillisversion

M0 Free clusters, Flex clusters, and M2/M5 Shared clusters don't support the following commands:

Note

The commands available for clusters of all other tiers, M10 and larger, correspond to the privileges defined for the built-inAtlas MongoDB roles. To learn more about permissions, seeAtlas User Privileges.

_migrateClone_recvChunkAbort_recvChunkCommit_recvChunkStart_recvChunkStatus_transferModsappendOplogNoteapplyOpsauthenticateautoCompactauthSchemaUpgradecleanupOrphanedcloneCollectioncloneCollectionAsCappedcompactcopydbgetnoncecopydbsaslstartcreateRoledb.collection.getSearchIndexes()createUsercurrentOpCtxdataSizedbHashdropAllRolesFromDatabasedropAllUsersFromDatabasedropConnectionsdropRoleenableFreeMonitoringforcerrorfsyncfsyncUnlock getDiagnosticDatagetPrevErrorgetShardMapgrantPrivilegesToRolegrantRolesToRolegrantRolesToUserhandshakehostInfoinvalidateUserCachekillAllSessionskillAllSessionsByPatternkillAnySessionkillSessions$listLocalSessions$listSessionslockInfologRotatelogApplicationMessageshardedFinishmapReduceplanCacheClearplanCacheClearFiltersplanCacheListFiltersplanCacheListPlansplanCacheListQueryShapes$planCacheStats aggregation pipeline stageplanCacheSetFilterreIndexrepairCursorrepairDatabasereplSetDeclareElectionWinner replSetElectreplSetFreezereplSetFreshreplSetGetConfigreplSetGetRBIDreplSetGetStatusreplSetHeartbeatreplSetInitiatereplSetMaintenancereplSetReconfigreplSetRequestVotesreplSetStepDownreplSetStepUpreplSetSyncFromreplSetUpdatePositionresetErrorresyncrevokePrivilegesFromRolerevokeRolesFromRolerevokeRolesFromUsersetClusterParametersetFeatureCompatibilityVersionsetLogLevelsetParametersetProfilingLevelshutdownupdateRoleupdateUserusersInfovalidate

M0 Free clusters, Flex clusters, and M2/M5 Shared clusters don't support the following command line tool options:

For more information, see Atlas M0 (Free Cluster), M2, and M5 Limits.

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

Atlas limits the db.killOp() method to the MongoDB user who ran the operation.

Atlas supports the following sharding command on onlyM30+ sharded clusters:

The following table lists the most common commands and shell methods that database user privileges do not support. To ensure cluster stability and performance, Atlas subsumes or restricts the functionality that these commands provide.

Note

M10+ clusters don't support the --preserveUUID option formongorestore.

Contact Atlas support if your use case requires access to a command that the Atlas database user privileges don't currently support.

Atlas Serverless instances don't support the followingdatabase commands and mongosh shell methods:

Flex Clusters and Serverless instances don't support the following command line tool options: