Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getUser
Explore with Pulumi AI
Provides a datasource to retrieve a user based on the input parameters.
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(categories: Optional[Sequence[GetUserCategory]] = None,
             owner_reference: Optional[Mapping[str, str]] = None,
             project_reference: Optional[Mapping[str, str]] = None,
             user_id: Optional[str] = None,
             user_name: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(categories: Optional[pulumi.Input[Sequence[pulumi.Input[GetUserCategoryArgs]]]] = None,
             owner_reference: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
             project_reference: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
             user_id: Optional[pulumi.Input[str]] = None,
             user_name: Optional[pulumi.Input[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: nutanix:index/getUser:getUser
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Categories
List<PiersKarsenbarg. Nutanix. Inputs. Get User Category> 
- (Optional) Categories for the Access Control Policy.
 
- OwnerReference Dictionary<string, string>
- (Optional) The reference to a user.
 
- ProjectReference Dictionary<string, string>
- (Optional) The reference to a project.
 
- UserId string
- UserName string
- Categories
[]GetUser Category 
- (Optional) Categories for the Access Control Policy.
 
- OwnerReference map[string]string
- (Optional) The reference to a user.
 
- ProjectReference map[string]string
- (Optional) The reference to a project.
 
- UserId string
- UserName string
- categories
List<GetUser Category> 
- (Optional) Categories for the Access Control Policy.
 
- ownerReference Map<String,String>
- (Optional) The reference to a user.
 
- projectReference Map<String,String>
- (Optional) The reference to a project.
 
- userId String
- userName String
- categories
GetUser Category[] 
- (Optional) Categories for the Access Control Policy.
 
- ownerReference {[key: string]: string}
- (Optional) The reference to a user.
 
- projectReference {[key: string]: string}
- (Optional) The reference to a project.
 
- userId string
- userName string
- categories
Sequence[GetUser Category] 
- (Optional) Categories for the Access Control Policy.
 
- owner_reference Mapping[str, str]
- (Optional) The reference to a user.
 
- project_reference Mapping[str, str]
- (Optional) The reference to a project.
 
- user_id str
- user_name str
- categories List<Property Map>
- (Optional) Categories for the Access Control Policy.
 
- ownerReference Map<String>
- (Optional) The reference to a user.
 
- projectReference Map<String>
- (Optional) The reference to a project.
 
- userId String
- userName String
getUser Result
The following output properties are available:
- AccessControl List<PiersPolicy Reference Lists Karsenbarg. Nutanix. Outputs. Get User Access Control Policy Reference List> 
- List of ACP references. See #reference for more details.
 
- ApiVersion string
- The version of the API.
- Categories
List<PiersKarsenbarg. Nutanix. Outputs. Get User Category> 
- (Optional) Categories for the Access Control Policy.
 
- DirectoryService List<PiersUsers Karsenbarg. Nutanix. Outputs. Get User Directory Service User> 
- (Optional) The directory service user configuration. See below for more information.
 
- DisplayName string
- The display name of the user (common name) provided by the directory service.
 
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityProvider List<PiersUsers Karsenbarg. Nutanix. Outputs. Get User Identity Provider User> 
- (Optional) (Optional) The identity provider user configuration. See below for more information.
 
- Metadata Dictionary<string, string>
- The user kind metadata.
 
- OwnerReference Dictionary<string, string>
- (Optional) The reference to a user.
 
- ProjectReference List<PiersLists Karsenbarg. Nutanix. Outputs. Get User Project Reference List> 
- A list of projects the user is part of. See #reference for more details.
 
- State string
- The state of the entity.
 
- UserType string
- The name of the user.
 
- ProjectReference Dictionary<string, string>
- (Optional) The reference to a project.
 
- UserId string
- UserName string
- AccessControl []GetPolicy Reference Lists User Access Control Policy Reference List 
- List of ACP references. See #reference for more details.
 
- ApiVersion string
- The version of the API.
- Categories
[]GetUser Category 
- (Optional) Categories for the Access Control Policy.
 
- DirectoryService []GetUsers User Directory Service User 
- (Optional) The directory service user configuration. See below for more information.
 
- DisplayName string
- The display name of the user (common name) provided by the directory service.
 
- Id string
- The provider-assigned unique ID for this managed resource.
- IdentityProvider []GetUsers User Identity Provider User 
- (Optional) (Optional) The identity provider user configuration. See below for more information.
 
- Metadata map[string]string
- The user kind metadata.
 
- OwnerReference map[string]string
- (Optional) The reference to a user.
 
- ProjectReference []GetLists User Project Reference List 
- A list of projects the user is part of. See #reference for more details.
 
- State string
- The state of the entity.
 
- UserType string
- The name of the user.
 
- ProjectReference map[string]string
- (Optional) The reference to a project.
 
- UserId string
- UserName string
- accessControl List<GetPolicy Reference Lists User Access Control Policy Reference List> 
- List of ACP references. See #reference for more details.
 
- apiVersion String
- The version of the API.
- categories
List<GetUser Category> 
- (Optional) Categories for the Access Control Policy.
 
- directoryService List<GetUsers User Directory Service User> 
- (Optional) The directory service user configuration. See below for more information.
 
- displayName String
- The display name of the user (common name) provided by the directory service.
 
- id String
- The provider-assigned unique ID for this managed resource.
- identityProvider List<GetUsers User Identity Provider User> 
- (Optional) (Optional) The identity provider user configuration. See below for more information.
 
- metadata Map<String,String>
- The user kind metadata.
 
- ownerReference Map<String,String>
- (Optional) The reference to a user.
 
- projectReference List<GetLists User Project Reference List> 
- A list of projects the user is part of. See #reference for more details.
 
- state String
- The state of the entity.
 
- userType String
- The name of the user.
 
- projectReference Map<String,String>
- (Optional) The reference to a project.
 
- userId String
- userName String
- accessControl GetPolicy Reference Lists User Access Control Policy Reference List[] 
- List of ACP references. See #reference for more details.
 
- apiVersion string
- The version of the API.
- categories
GetUser Category[] 
- (Optional) Categories for the Access Control Policy.
 
- directoryService GetUsers User Directory Service User[] 
- (Optional) The directory service user configuration. See below for more information.
 
- displayName string
- The display name of the user (common name) provided by the directory service.
 
- id string
- The provider-assigned unique ID for this managed resource.
- identityProvider GetUsers User Identity Provider User[] 
- (Optional) (Optional) The identity provider user configuration. See below for more information.
 
- metadata {[key: string]: string}
- The user kind metadata.
 
- ownerReference {[key: string]: string}
- (Optional) The reference to a user.
 
- projectReference GetLists User Project Reference List[] 
- A list of projects the user is part of. See #reference for more details.
 
- state string
- The state of the entity.
 
- userType string
- The name of the user.
 
- projectReference {[key: string]: string}
- (Optional) The reference to a project.
 
- userId string
- userName string
- access_control_ Sequence[Getpolicy_ reference_ lists User Access Control Policy Reference List] 
- List of ACP references. See #reference for more details.
 
- api_version str
- The version of the API.
- categories
Sequence[GetUser Category] 
- (Optional) Categories for the Access Control Policy.
 
- directory_service_ Sequence[Getusers User Directory Service User] 
- (Optional) The directory service user configuration. See below for more information.
 
- display_name str
- The display name of the user (common name) provided by the directory service.
 
- id str
- The provider-assigned unique ID for this managed resource.
- identity_provider_ Sequence[Getusers User Identity Provider User] 
- (Optional) (Optional) The identity provider user configuration. See below for more information.
 
- metadata Mapping[str, str]
- The user kind metadata.
 
- owner_reference Mapping[str, str]
- (Optional) The reference to a user.
 
- project_reference_ Sequence[Getlists User Project Reference List] 
- A list of projects the user is part of. See #reference for more details.
 
- state str
- The state of the entity.
 
- user_type str
- The name of the user.
 
- project_reference Mapping[str, str]
- (Optional) The reference to a project.
 
- user_id str
- user_name str
- accessControl List<Property Map>Policy Reference Lists 
- List of ACP references. See #reference for more details.
 
- apiVersion String
- The version of the API.
- categories List<Property Map>
- (Optional) Categories for the Access Control Policy.
 
- directoryService List<Property Map>Users 
- (Optional) The directory service user configuration. See below for more information.
 
- displayName String
- The display name of the user (common name) provided by the directory service.
 
- id String
- The provider-assigned unique ID for this managed resource.
- identityProvider List<Property Map>Users 
- (Optional) (Optional) The identity provider user configuration. See below for more information.
 
- metadata Map<String>
- The user kind metadata.
 
- ownerReference Map<String>
- (Optional) The reference to a user.
 
- projectReference List<Property Map>Lists 
- A list of projects the user is part of. See #reference for more details.
 
- state String
- The state of the entity.
 
- userType String
- The name of the user.
 
- projectReference Map<String>
- (Optional) The reference to a project.
 
- userId String
- userName String
Supporting Types
GetUserAccessControlPolicyReferenceList      
GetUserCategory  
GetUserDirectoryServiceUser    
- DefaultUser stringPrincipal Name 
- DirectoryService List<PiersReferences Karsenbarg. Nutanix. Inputs. Get User Directory Service User Directory Service Reference> 
- (Optional) The reference to a directory service. See #reference for to look the supported attributes.
 
- UserPrincipal stringName 
- (Optional) The UserPrincipalName of the user from the directory service.
 
- DefaultUser stringPrincipal Name 
- DirectoryService []GetReferences User Directory Service User Directory Service Reference 
- (Optional) The reference to a directory service. See #reference for to look the supported attributes.
 
- UserPrincipal stringName 
- (Optional) The UserPrincipalName of the user from the directory service.
 
- defaultUser StringPrincipal Name 
- directoryService List<GetReferences User Directory Service User Directory Service Reference> 
- (Optional) The reference to a directory service. See #reference for to look the supported attributes.
 
- userPrincipal StringName 
- (Optional) The UserPrincipalName of the user from the directory service.
 
- defaultUser stringPrincipal Name 
- directoryService GetReferences User Directory Service User Directory Service Reference[] 
- (Optional) The reference to a directory service. See #reference for to look the supported attributes.
 
- userPrincipal stringName 
- (Optional) The UserPrincipalName of the user from the directory service.
 
- default_user_ strprincipal_ name 
- directory_service_ Sequence[Getreferences User Directory Service User Directory Service Reference] 
- (Optional) The reference to a directory service. See #reference for to look the supported attributes.
 
- user_principal_ strname 
- (Optional) The UserPrincipalName of the user from the directory service.
 
- defaultUser StringPrincipal Name 
- directoryService List<Property Map>References 
- (Optional) The reference to a directory service. See #reference for to look the supported attributes.
 
- userPrincipal StringName 
- (Optional) The UserPrincipalName of the user from the directory service.
 
GetUserDirectoryServiceUserDirectoryServiceReference       
GetUserIdentityProviderUser    
- IdentityProvider List<PiersReferences Karsenbarg. Nutanix. Inputs. Get User Identity Provider User Identity Provider Reference> 
- (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
 
- Username string
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
 
- IdentityProvider []GetReferences User Identity Provider User Identity Provider Reference 
- (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
 
- Username string
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
 
- identityProvider List<GetReferences User Identity Provider User Identity Provider Reference> 
- (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
 
- username String
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
 
- identityProvider GetReferences User Identity Provider User Identity Provider Reference[] 
- (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
 
- username string
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
 
- identity_provider_ Sequence[Getreferences User Identity Provider User Identity Provider Reference] 
- (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
 
- username str
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
 
- identityProvider List<Property Map>References 
- (Optional) The reference to a identity provider. See #reference for to look the supported attributes.
 
- username String
- (Optional) The username from identity provider. Name ID for SAML Identity Provider.
 
GetUserIdentityProviderUserIdentityProviderReference       
GetUserProjectReferenceList    
Package Details
- Repository
- nutanix pierskarsenbarg/pulumi-nutanix
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the nutanixTerraform Provider.
