1MONGOC_DATABASE_REMOVE_USER(3)     libmongoc    MONGOC_DATABASE_REMOVE_USER(3)
2
3
4

NAME

6       mongoc_database_remove_user - mongoc_database_remove_user()
7

SYNOPSIS

9          bool
10          mongoc_database_remove_user (mongoc_database_t *database,
11                                       const char *username,
12                                       bson_error_t *error);
13
14       This function removes the user named username from database.
15

PARAMETERS

17database: A mongoc_database_t.
18
19username: A string containing the username of the user to remove.
20
21error: An optional location for a bson_error_t or NULL.
22

ERRORS

24       Errors  are  propagated  via  the  error  parameter. This could include
25       socket errors or others if the current user is not authorized  to  per‐
26       form the command.
27

RETURNS

29       Returns  true  if successful. Returns false and sets error if there are
30       invalid arguments or a server or network error.
31

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.20.0                           Nov 18, 2021   MONGOC_DATABASE_REMOVE_USER(3)
Impressum