# salt.states.mongodb_user

## Management of Mongodb users

`salt.states.mongodb_user.` `absent`(name, user=None, password=None, host=None, port=None, database='admin')

  Ensure that the named user is absent

  name
    The name of the user to remove
  user
    The user to connect as (must be able to create the user)
  password
    The password of the user
  host
    The host to connect to
  port
    The port to connect to
  database
    The database to create the user in (if the db doesn't exist, it will be created)

`salt.states.mongodb_user.` `present`(name, passwd, database='admin', user=None, password=None, host=None, port=None)

  Ensure that the user is present with the specified properties

  name
    The name of the user to manage
  passwd
    The password of the user
  user
    The user to connect as (must be able to create the user)
  password
    The password of the user
  host
    The host to connect to
  port
    The port to connect to
  database
    The database to create the user in (if the db doesn't exist, it will be created)

Current Salt release: 0.17.1

### Table Of Contents

- salt.states.mongodb_user
  - Management of Mongodb users

#### Previous topic

salt.states.mongodb_database

#### Next topic

salt.states.mount

### Quick search

Enter search terms or a module, class or function name.

### Upcoming SaltStack Events

My conferences on Lanyrd