Azure DevOps v3.8.0 published on Monday, Mar 17, 2025 by Pulumi
azuredevops.getUser
Explore with Pulumi AI
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
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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()
            .principalName("example@example.com")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azuredevops:getUser
      arguments:
        principalName: example@example.com
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
- DisplayName 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.
- MailAddress string
- The email address of the user.
- Origin string
- The type of source provider for the origin identifier (ex:AD,AAD,MSA).
- OriginId string
- The origin ID of the user.
- PrincipalName string
- The principal name of the user.
- SubjectKind string
- The subject kind of the user (ex: Group,Scope,User).
- Descriptor string
- DisplayName 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.
- MailAddress string
- The email address of the user.
- Origin string
- The type of source provider for the origin identifier (ex:AD,AAD,MSA).
- OriginId string
- The origin ID of the user.
- PrincipalName string
- The principal name of the user.
- SubjectKind string
- The subject kind of the user (ex: Group,Scope,User).
- descriptor String
- displayName 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.
- mailAddress String
- The email address of the user.
- origin String
- The type of source provider for the origin identifier (ex:AD,AAD,MSA).
- originId String
- The origin ID of the user.
- principalName String
- The principal name of the user.
- subjectKind String
- The subject kind of the user (ex: Group,Scope,User).
- descriptor string
- displayName 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.
- mailAddress string
- The email address of the user.
- origin string
- The type of source provider for the origin identifier (ex:AD,AAD,MSA).
- originId string
- The origin ID of the user.
- principalName string
- The principal name of the user.
- subjectKind 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
- displayName 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.
- mailAddress String
- The email address of the user.
- origin String
- The type of source provider for the origin identifier (ex:AD,AAD,MSA).
- originId String
- The origin ID of the user.
- principalName String
- The principal name of the user.
- subjectKind 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.