Unsupported Commands in Atlas
On this page
- Unsupported Commands in
M0/M2/M5
Clusters - Limited Commands
- Unsupported Commands
- Unsupported Command Line Options
- Unsupported Commands in
M10+
Clusters - Limited Commands
- Unsupported Commands
- Unsupported Command Line Options
- MongoDB 4.2+ Incompatibility
- Contact Support
- Unsupported Commands in Serverless Instances
- Unsupported Command Line Options
Unsupported Commands in M0/M2/M5
Clusters
Atlas M0
free clusters and M2
/M5
shared clusters don't support all functionality available to
other clusters.
Important
M0
free clusters and M2
/M5
shared clusters don't support read or write operations on the admin
database.
To learn more about M0
/M2
/M5
limits, see
Atlas M0 (Free Cluster), M2, and M5 Limits.
Note
If you use an unsupported command or invalid syntax, 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
Limited Commands
You can run the following commands with limits in M0
free clusters and M2
/M5
shared clusters:
Command | Limit | ||
---|---|---|---|
| |||
To learn more, see Operational Limits. | |||
Doesn't support $where operator. | |||
Limits execution to these two documents:
| |||
Limits the db.killOp() method to the MongoDB user
who ran the operation. | |||
Limits response to the following fields:
| |||
Limits to the following document:
|
Unsupported Commands
M0
free 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-in
Atlas MongoDB roles. To learn more about permissions, see
Atlas User Privileges.
|
|
|
Unsupported Command Line Options
M0
free clusters and M2/M5
shared clusters don't
support the following command line tool options:
Command Line Tool | Unsupported Options |
---|---|
For more information, see Atlas M0 (Free Cluster), M2, and M5 Limits.
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.
Limited Commands
Atlas limits the db.killOp()
method to
the MongoDB user who ran the operation.
Unsupported Commands
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.
Administrative
Commands | Shell Method | Privilege Actions |
---|---|---|
Others that use | ||
eval | db.eval() | |
Sessions
Commands | Shell Method | Privilege Actions |
---|---|---|
Replication
Sharding
Commands | Shell Method | Privilege Actions |
---|---|---|
[1] | (1, 2, 3, 4) If you use MongoDB 5.0.6 or later, 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.
Commands | Shell Method | Privilege Actions |
---|---|---|
getUser [3] | ||
[3] | (1, 2, 3, 4) You can call getUser for your own user account. |
Unsupported Command Line Options
M10+
clusters don't support the --preserveUUID option for
mongorestore
.
MongoDB 4.2+ Incompatibility
MongoDB versions 4.2 and later don't support the following commands and methods:
Commands | Shell Method |
---|---|
parallelCollectionScan | |
clone | db.cloneDatabase() |
copydb | db.copyDatabase() |
Contact Support
Contact Atlas support if your use case requires access to a command that the Atlas database user privileges don't currently support.
Unsupported Commands in Serverless Instances
Atlas serverless instances don't support the following
database commands and mongosh
shell methods:
Database Command | Shell Method |
---|---|
eval | db.eval() |
geoNear (deprecated in MongoDB v4.0) | |
getUser [3] | |
$listLocalSessions aggregation pipeline stage | |
$listSessions aggregation pipeline stage | |
$planCacheStats aggregation pipeline stage | |
resync | |
Others that use | |
(deprecated in MongoDB v4.4) | |
Unsupported Command Line Options
Serverless instances don't support the following command line tool options:
Command Line Tool | Unsupported Options |
---|---|