Azure DevOps v3.10.2 published on Wednesday, Oct 22, 2025 by Pulumi
Azure DevOps v3.10.2 published on Wednesday, Oct 22, 2025 by Pulumi
Use this data source to access information about an existing user within Azure DevOps.
~>NOTE: If you only have the Storage Key(UUID) of the user, you can use azuredevops.getDescriptor to resolve the Storage Key(UUID) to a descriptor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const example = azuredevops.getUser({
descriptor: "descriptor",
});
import pulumi
import pulumi_azuredevops as azuredevops
example = azuredevops.get_user(descriptor="descriptor")
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/v3/go/azuredevops"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuredevops.LookupUser(ctx, &azuredevops.LookupUserArgs{
Descriptor: "descriptor",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
return await Deployment.RunAsync(() =>
{
var example = AzureDevOps.GetUser.Invoke(new()
{
Descriptor = "descriptor",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuredevops.AzuredevopsFunctions;
import com.pulumi.azuredevops.inputs.GetUserArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AzuredevopsFunctions.getUser(GetUserArgs.builder()
.descriptor("descriptor")
.build());
}
}
variables:
example:
fn::invoke:
function: azuredevops:getUser
arguments:
descriptor: descriptor
Relevant Links
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(descriptor: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserResult
def get_user_output(descriptor: 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: azuredevops:index/getUser:getUser
arguments:
# arguments dictionaryThe following arguments are supported:
- Descriptor string
- The descriptor of the user.
- Descriptor string
- The descriptor of the user.
- descriptor String
- The descriptor of the user.
- descriptor string
- The descriptor of the user.
- descriptor str
- The descriptor of the user.
- descriptor String
- The descriptor of the user.
getUser Result
The following output properties are available:
- Descriptor string
- Display
Name string - The display name of the User.
- Domain string
- The domain of the user.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mail
Address string - The email address of the user.
- Origin string
- The type of source provider for the origin identifier (ex:
AD,AAD,MSA). - Origin
Id string - The origin ID of the user.
- Principal
Name string - The principal name of the user.
- Subject
Kind string - The subject kind of the user (ex:
Group,Scope,User).
- Descriptor string
- Display
Name string - The display name of the User.
- Domain string
- The domain of the user.
- Id string
- The provider-assigned unique ID for this managed resource.
- Mail
Address string - The email address of the user.
- Origin string
- The type of source provider for the origin identifier (ex:
AD,AAD,MSA). - Origin
Id string - The origin ID of the user.
- Principal
Name string - The principal name of the user.
- Subject
Kind string - The subject kind of the user (ex:
Group,Scope,User).
- descriptor String
- display
Name String - The display name of the User.
- domain String
- The domain of the user.
- id String
- The provider-assigned unique ID for this managed resource.
- mail
Address String - The email address of the user.
- origin String
- The type of source provider for the origin identifier (ex:
AD,AAD,MSA). - origin
Id String - The origin ID of the user.
- principal
Name String - The principal name of the user.
- subject
Kind String - The subject kind of the user (ex:
Group,Scope,User).
- descriptor string
- display
Name string - The display name of the User.
- domain string
- The domain of the user.
- id string
- The provider-assigned unique ID for this managed resource.
- mail
Address string - The email address of the user.
- origin string
- The type of source provider for the origin identifier (ex:
AD,AAD,MSA). - origin
Id string - The origin ID of the user.
- principal
Name string - The principal name of the user.
- subject
Kind string - The subject kind of the user (ex:
Group,Scope,User).
- descriptor str
- display_
name str - The display name of the User.
- domain str
- The domain of the user.
- id str
- The provider-assigned unique ID for this managed resource.
- mail_
address str - The email address of the user.
- origin str
- The type of source provider for the origin identifier (ex:
AD,AAD,MSA). - origin_
id str - The origin ID of the user.
- principal_
name str - The principal name of the user.
- subject_
kind str - The subject kind of the user (ex:
Group,Scope,User).
- descriptor String
- display
Name String - The display name of the User.
- domain String
- The domain of the user.
- id String
- The provider-assigned unique ID for this managed resource.
- mail
Address String - The email address of the user.
- origin String
- The type of source provider for the origin identifier (ex:
AD,AAD,MSA). - origin
Id String - The origin ID of the user.
- principal
Name String - The principal name of the user.
- subject
Kind String - The subject kind of the user (ex:
Group,Scope,User).
Package Details
- Repository
- Azure DevOps pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.
Azure DevOps v3.10.2 published on Wednesday, Oct 22, 2025 by Pulumi
