Channel Revision Published Runs on
6/stable 265 23 Jan 2026
Ubuntu 22.04
6/candidate 265 23 Jan 2026
Ubuntu 22.04
6/beta 265 23 Jan 2026
Ubuntu 22.04
6/edge 286 19 Feb 2026
Ubuntu 22.04
8-transition/edge 282 06 Feb 2026
Ubuntu 24.04
8-transition/edge 281 06 Feb 2026
Ubuntu 24.04
8/stable 266 23 Jan 2026
Ubuntu 24.04
8/candidate 266 23 Jan 2026
Ubuntu 24.04
8/beta 266 23 Jan 2026
Ubuntu 24.04
8/edge 285 10 Feb 2026
Ubuntu 24.04
8/edge 283 10 Feb 2026
Ubuntu 24.04
juju deploy mongodb --channel 6/stable
Show information

Platform:

Ubuntu
24.04 22.04

charms.mongodb.v1.users

Users configuration for MongoDB.


class MongoDBUser

Description

Base class for MongoDB users. None

Methods

MongoDBUser. get_username( self )

Description

Returns the username of the user. None

MongoDBUser. get_password_key_name( self )

Description

Returns the key name for the password of the user. None

MongoDBUser. get_database_name( self )

Description

Returns the database of the user. None

MongoDBUser. get_roles( self )

Description

Returns the role of the user. None

MongoDBUser. get_mongodb_role( self )

Description

Returns the MongoDB role of the user. None

MongoDBUser. get_privileges( self )

Description

Returns the privileges of the user. None

MongoDBUser. get_hosts( self )

Description

Returns the hosts of the user. None

MongoDBUser. get_password_key_name_for_user( username: str )

Description

Returns the key name for the password of the user. None