Managed Service for MongoDB API, gRPC: UserService.Get
Returns the specified MongoDB User resource.
To get the list of available MongoDB User resources, make a List request.
gRPC request
rpc Get (GetUserRequest) returns (User)
GetUserRequest
{
"cluster_id": "string",
"user_name": "string"
}
Field |
Description |
cluster_id |
string Required field. ID of the MongoDB cluster the user belongs to. |
user_name |
string Required field. Name of the MongoDB User resource to return. |
User
{
"name": "string",
"cluster_id": "string",
"permissions": [
{
"database_name": "string",
"roles": [
"string"
]
}
]
}
A MongoDB User resource. For more information, see the
Developer's Guide.
Field |
Description |
name |
string Name of the MongoDB user. |
cluster_id |
string ID of the MongoDB cluster the user belongs to. |
permissions[] |
Set of permissions granted to the user. |
Permission
Field |
Description |
database_name |
string Name of the database that the permission grants access to. |
roles[] |
string MongoDB roles for the |