Managed Service for MongoDB API, gRPC: UserService.Get
Returns the specified StoreDoc User resource.
To get the list of available StoreDoc 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 StoreDoc cluster the user belongs to. The maximum string length in characters is 50. |
|
user_name |
string Required field. Name of the StoreDoc User resource to return. The maximum string length in characters is 63. Value must match the regular expression |
User
{
"name": "string",
"cluster_id": "string",
"permissions": [
{
"database_name": "string",
"roles": [
"string"
]
}
],
"connection_manager": {
"connection_id": "string"
},
"auth_type": "AuthType",
"deletion_protection": "google.protobuf.BoolValue"
}
A StoreDoc User resource. For more information, see the
Developer's Guide.
|
Field |
Description |
|
name |
string Name of the StoreDoc user. |
|
cluster_id |
string ID of the StoreDoc cluster the user belongs to. |
|
permissions[] |
Set of permissions granted to the user. |
|
connection_manager |
Connection Manager connection configuration. |
|
auth_type |
enum AuthType Authentication type for the user.
|
|
deletion_protection |
Deletion Protection inhibits deletion of the user. |
Permission
|
Field |
Description |
|
database_name |
string Name of the database that the permission grants access to. |
|
roles[] |
string StoreDoc roles for the |
ConnectionManager
Connection Manager connection configuration.
|
Field |
Description |
|
connection_id |
string ID of Connection Manager connection. |