This page compares command support for Free clusters, Flex clusters, M10+ Atlas Core clusters, and M10+ Atlas Infinite clusters in the following sections:
Unsupported Commands lists MongoDB commands and shell methods that Atlas doesn't support, organized by command category.
Unsupported Command Line Options lists
mongodumpandmongorestoreoptions that Atlas doesn't support.Limited Commands lists commands that Atlas supports with restrictions for each cluster type.
Atlas requires clients to authenticate to access an Atlas cluster. Atlas provides a curated list of Database User Privileges that grant access to a subset of MongoDB commands. The tables in the Unsupported Commands section list the commands that fall outside this subset for each cluster type.
Atlas Free, Flex, and Infinite clusters don't support all functionality available to other clusters. To learn more, see:
Unsupported Commands
The following tables list the MongoDB commands, shell methods, and privilege actions that Atlas doesn't support, by cluster type. To ensure cluster stability and performance, Atlas automates the functionality that these commands provide. Atlas restricts other commands based on a cluster's tier or database edition.
A indicates that the cluster type doesn't support the command.
Note
If you use an unsupported command or invalid syntax in Free clusters and Flex clusters, Atlas returns 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
Administrative
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
| |||||
| |||||
|
| ||||
| |||||
| |||||
| |||||
Others that use | |||||
Aggregation
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
|
Authentication
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
| |||||
|
Diagnostic
Query Plan Cache
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
| |||||
| |||||
Replication
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
|
Sessions
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
Sharding
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
| |||||
| |||||
| |||||
| |||||
| |||||
| |||||
| [1] | (1, 2) You can use setAllowMigrations to control the balancing of a specific collection. |
| [2] | This command is not supported on global write clusters only. |
User and Role Management
Note
As an alternative, see the available Atlas User Roles.
Command | Shell Method | Privilege Actions | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|---|
| |||||
| [3] | (1, 2) You can call getUser for your own user account. |
Unsupported Command Line Options
Atlas doesn't support the following command line tool options. A indicates that the cluster type doesn't support the option.
Option | Command Line Tool | Free and Flex | M10+ Core | M10+ Infinite |
|---|---|---|---|---|
Limited Commands
Atlas supports the following commands with limits.
Free and Flex
You can run the following commands with limits in Free clusters and Flex clusters:
Command | Limit | ||
|---|---|---|---|
| |||
Free clusters and Flex clusters don't allow the To learn more, see Operational Limits. | |||
Doesn't support | |||
| |||
Limits execution to these two documents:
| |||
Limits the | |||
Doesn't support the $$USER_ROLES system variable. | |||
Doesn't support the $$USER_ROLES system variable. | |||
Doesn't support the $$USER_ROLES system variable. | |||
Limits response to the following fields:
|
M10+ Core
Atlas limits the db.killOp() method to the MongoDB user who ran the operation.
Atlas doesn't support the killAllSessions command unless the database user has:
the
killAnySessionprivilege, orthe
killOpSessionrole.
Atlas supports the following sharding commands on only M30+ sharded Atlas Core clusters.
M10+ Infinite
Atlas limits the db.killOp() method to the MongoDB user who ran the operation.
Atlas doesn't support the killAllSessions command unless the database user has:
the
killAnySessionprivilege, orthe
killOpSessionrole.
Atlas Infinite clusters only support the profile command when the database profiler level is 0.
Contact Support
Contact Atlas support if your use case requires access to a command that the Atlas database user privileges don't currently support.