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
{
"clusterId": "string",
"userName": "string"
}
Field |
Description |
clusterId |
string Required field. ID of the MongoDB cluster the user belongs to. |
userName |
string Required field. Name of the MongoDB User resource to return. |
User
{
"name": "string",
"clusterId": "string",
"permissions": [
{
"databaseName": "string",
"roles": [
"string"
]
}
]
}
A MongoDB User resource. For more information, see the
Developer's Guide.
Field |
Description |
name |
string Name of the MongoDB user. |
clusterId |
string ID of the MongoDB cluster the user belongs to. |
permissions[] |
Set of permissions granted to the user. |
Permission
Field |
Description |
databaseName |
string Name of the database that the permission grants access to. |
roles[] |
string MongoDB roles for the |