published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
Gets the defintion of a Mongo cluster user.
Uses Azure REST API version 2025-04-01-preview.
Other available API versions: 2025-07-01-preview, 2025-08-01-preview, 2025-09-01, 2026-02-01-preview, 2026-06-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native mongocluster [ApiVersion]. See the version guide for details.
Using getUser
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>
function getUserOutput(args: GetUserOutputArgs, opts?: InvokeOptions): Output<GetUserResult>def get_user(mongo_cluster_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
user_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(mongo_cluster_name: pulumi.Input[Optional[str]] = None,
resource_group_name: pulumi.Input[Optional[str]] = None,
user_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput> Note: This function is named LookupUser in the Go SDK.
public static class GetUser
{
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
public static Output<GetUserResult> Invoke(GetUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:mongocluster:getUser
arguments:
# arguments dictionarydata "azure-native_mongocluster_get_user" "name" {
# arguments
}The following arguments are supported:
- Mongo
Cluster stringName - The name of the mongo cluster.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- User
Name string - The name of the mongo cluster user.
- Mongo
Cluster stringName - The name of the mongo cluster.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- User
Name string - The name of the mongo cluster user.
- mongo_
cluster_ stringname - The name of the mongo cluster.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- user_
name string - The name of the mongo cluster user.
- mongo
Cluster StringName - The name of the mongo cluster.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- user
Name String - The name of the mongo cluster user.
- mongo
Cluster stringName - The name of the mongo cluster.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- user
Name string - The name of the mongo cluster user.
- mongo_
cluster_ strname - The name of the mongo cluster.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- user_
name str - The name of the mongo cluster user.
- mongo
Cluster StringName - The name of the mongo cluster.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- user
Name String - The name of the mongo cluster user.
getUser Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Properties
Pulumi.
Azure Native. Mongo Cluster. Outputs. User Properties Response - The resource-specific properties for this resource.
- System
Data Pulumi.Azure Native. Mongo Cluster. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Azure
Api stringVersion - The Azure API version of the resource.
- Id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- Name string
- The name of the resource
- Properties
User
Properties Response - The resource-specific properties for this resource.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ stringversion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- properties object
- The resource-specific properties for this resource.
- system_
data object - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- properties
User
Properties Response - The resource-specific properties for this resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api stringVersion - The Azure API version of the resource.
- id string
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name string
- The name of the resource
- properties
User
Properties Response - The resource-specific properties for this resource.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure_
api_ strversion - The Azure API version of the resource.
- id str
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name str
- The name of the resource
- properties
User
Properties Response - The resource-specific properties for this resource.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- azure
Api StringVersion - The Azure API version of the resource.
- id String
- Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}"
- name String
- The name of the resource
- properties Property Map
- The resource-specific properties for this resource.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
DatabaseRoleResponse
EntraIdentityProviderPropertiesResponse
- Principal
Type string - The principal type of the user.
- Principal
Type string - The principal type of the user.
- principal_
type string - The principal type of the user.
- principal
Type String - The principal type of the user.
- principal
Type string - The principal type of the user.
- principal_
type str - The principal type of the user.
- principal
Type String - The principal type of the user.
EntraIdentityProviderResponse
- Properties
Pulumi.
Azure Native. Mongo Cluster. Inputs. Entra Identity Provider Properties Response - The Entra identity properties for the user.
- Properties
Entra
Identity Provider Properties Response - The Entra identity properties for the user.
- properties object
- The Entra identity properties for the user.
- properties
Entra
Identity Provider Properties Response - The Entra identity properties for the user.
- properties
Entra
Identity Provider Properties Response - The Entra identity properties for the user.
- properties
Entra
Identity Provider Properties Response - The Entra identity properties for the user.
- properties Property Map
- The Entra identity properties for the user.
SystemDataResponse
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at string - The timestamp of resource creation (UTC).
- created_
by string - The identity that created the resource.
- created_
by_ stringtype - The type of identity that created the resource.
- last_
modified_ stringat - The timestamp of resource last modification (UTC)
- last_
modified_ stringby - The identity that last modified the resource.
- last_
modified_ stringby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
UserPropertiesResponse
- Provisioning
State string - The provisioning state of the user.
- Identity
Provider Pulumi.Azure Native. Mongo Cluster. Inputs. Entra Identity Provider Response - The user's identity provider definition.
- Roles
List<Pulumi.
Azure Native. Mongo Cluster. Inputs. Database Role Response> - Database roles that are assigned to the user.
- Provisioning
State string - The provisioning state of the user.
- Identity
Provider EntraIdentity Provider Response - The user's identity provider definition.
- Roles
[]Database
Role Response - Database roles that are assigned to the user.
- provisioning_
state string - The provisioning state of the user.
- identity_
provider object - The user's identity provider definition.
- roles list(object)
- Database roles that are assigned to the user.
- provisioning
State String - The provisioning state of the user.
- identity
Provider EntraIdentity Provider Response - The user's identity provider definition.
- roles
List<Database
Role Response> - Database roles that are assigned to the user.
- provisioning
State string - The provisioning state of the user.
- identity
Provider EntraIdentity Provider Response - The user's identity provider definition.
- roles
Database
Role Response[] - Database roles that are assigned to the user.
- provisioning_
state str - The provisioning state of the user.
- identity_
provider EntraIdentity Provider Response - The user's identity provider definition.
- roles
Sequence[Database
Role Response] - Database roles that are assigned to the user.
- provisioning
State String - The provisioning state of the user.
- identity
Provider Property Map - The user's identity provider definition.
- roles List<Property Map>
- Database roles that are assigned to the user.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
published on Wednesday, Aug 5, 2026 by Pulumi