1. Packages
  2. Azure Classic
  3. API Docs
  4. apimanagement
  5. getUser

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.apimanagement.getUser

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

Use this data source to access information about an existing API Management User.

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>
Copy
def get_user(api_management_name: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             user_id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(api_management_name: Optional[pulumi.Input[str]] = None,
             resource_group_name: Optional[pulumi.Input[str]] = None,
             user_id: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetUserResult]
Copy
func LookupUser(ctx *Context, args *LookupUserArgs, opts ...InvokeOption) (*LookupUserResult, error)
func LookupUserOutput(ctx *Context, args *LookupUserOutputArgs, opts ...InvokeOption) LookupUserResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
public static Output<GetUserResult> getUser(GetUserArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:apimanagement/getUser:getUser
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApiManagementName This property is required. string
The Name of the API Management Service in which this User exists.
ResourceGroupName This property is required. string
The Name of the Resource Group in which the API Management Service exists.
UserId This property is required. string
The Identifier for the User.
ApiManagementName This property is required. string
The Name of the API Management Service in which this User exists.
ResourceGroupName This property is required. string
The Name of the Resource Group in which the API Management Service exists.
UserId This property is required. string
The Identifier for the User.
apiManagementName This property is required. String
The Name of the API Management Service in which this User exists.
resourceGroupName This property is required. String
The Name of the Resource Group in which the API Management Service exists.
userId This property is required. String
The Identifier for the User.
apiManagementName This property is required. string
The Name of the API Management Service in which this User exists.
resourceGroupName This property is required. string
The Name of the Resource Group in which the API Management Service exists.
userId This property is required. string
The Identifier for the User.
api_management_name This property is required. str
The Name of the API Management Service in which this User exists.
resource_group_name This property is required. str
The Name of the Resource Group in which the API Management Service exists.
user_id This property is required. str
The Identifier for the User.
apiManagementName This property is required. String
The Name of the API Management Service in which this User exists.
resourceGroupName This property is required. String
The Name of the Resource Group in which the API Management Service exists.
userId This property is required. String
The Identifier for the User.

getUser Result

The following output properties are available:

ApiManagementName string
Email string
The Email Address used for this User.
FirstName string
The First Name for the User.
Id string
The provider-assigned unique ID for this managed resource.
LastName string
The Last Name for the User.
Note string
Any notes about this User.
ResourceGroupName string
State string
The current state of this User, for example active, blocked or pending.
UserId string
ApiManagementName string
Email string
The Email Address used for this User.
FirstName string
The First Name for the User.
Id string
The provider-assigned unique ID for this managed resource.
LastName string
The Last Name for the User.
Note string
Any notes about this User.
ResourceGroupName string
State string
The current state of this User, for example active, blocked or pending.
UserId string
apiManagementName String
email String
The Email Address used for this User.
firstName String
The First Name for the User.
id String
The provider-assigned unique ID for this managed resource.
lastName String
The Last Name for the User.
note String
Any notes about this User.
resourceGroupName String
state String
The current state of this User, for example active, blocked or pending.
userId String
apiManagementName string
email string
The Email Address used for this User.
firstName string
The First Name for the User.
id string
The provider-assigned unique ID for this managed resource.
lastName string
The Last Name for the User.
note string
Any notes about this User.
resourceGroupName string
state string
The current state of this User, for example active, blocked or pending.
userId string
api_management_name str
email str
The Email Address used for this User.
first_name str
The First Name for the User.
id str
The provider-assigned unique ID for this managed resource.
last_name str
The Last Name for the User.
note str
Any notes about this User.
resource_group_name str
state str
The current state of this User, for example active, blocked or pending.
user_id str
apiManagementName String
email String
The Email Address used for this User.
firstName String
The First Name for the User.
id String
The provider-assigned unique ID for this managed resource.
lastName String
The Last Name for the User.
note String
Any notes about this User.
resourceGroupName String
state String
The current state of this User, for example active, blocked or pending.
userId String

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi