You can create a user in MongoDB by using the `db.createUser()` function. However, you would have to have administrative privileges to do this in MongoDB.
Here is an example of how to create a new user:
1. Access the admin database:
```
use admin
```
1. Create the new user using the `db.createUser()` function:
```
db.createUser(
{
user: “newUser”,
pwd: “newUserPassword”,
roles: [ { role: “readWrite”, db: “databaseName” } ]
}
)
```
This command would create a user named “newUser” with a password of “newUserPassword” with the “readWrite” roles on the database “databaseName”.
Note: Replace “newUser”, “newUserPassword”, and “databaseName” with the desired username, password, and database respectively.
It’s important to mention that, by default, MongoDB doesn’t control the access to the data stored. In practice, it means that any user can perform any action, like read, write or delete data. If you want to restrict access to the database, you need to enable access control.