User
Manages a user entitlement within Azure DevOps.
Relevant Links
PAT Permissions Required
- Member Entitlement Management: Read & Write
Example Usage
using Pulumi;
using AzureDevOps = Pulumi.AzureDevOps;
class MyStack : Stack
{
public MyStack()
{
var user = new AzureDevOps.Entitlement.User("user", new AzureDevOps.Entitlement.UserArgs
{
PrincipalName = "foo@contoso.com",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azuredevops/sdk/go/azuredevops/Entitlement"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
user, err := Entitlement.NewUser(ctx, "user", &Entitlement.UserArgs{
PrincipalName: pulumi.String("foo@contoso.com"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azuredevops as azuredevops
user = azuredevops.entitlement.User("user", principal_name="foo@contoso.com")import * as pulumi from "@pulumi/pulumi";
import * as azuredevops from "@pulumi/azuredevops";
const user = new azuredevops.Entitlement.User("user", {
principalName: "foo@contoso.com",
});Create a User Resource
new User(name: string, args?: UserArgs, opts?: CustomResourceOptions);def User(resource_name, opts=None, account_license_type=None, licensing_source=None, origin=None, origin_id=None, principal_name=None, __props__=None);public User(string name, UserArgs? args = null, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args UserArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
User Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The User resource accepts the following input properties:
- Account
License stringType Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- Licensing
Source string The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- Origin string
The type of source provider for the origin identifier.
- Origin
Id string The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- Principal
Name string The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
- Account
License stringType Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- Licensing
Source string The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- Origin string
The type of source provider for the origin identifier.
- Origin
Id string The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- Principal
Name string The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
- account
License stringType Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- licensing
Source string The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- origin string
The type of source provider for the origin identifier.
- origin
Id string The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- principal
Name string The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
- account_
license_ strtype Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- licensing_
source str The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- origin str
The type of source provider for the origin identifier.
- origin_
id str The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- principal_
name str The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
Outputs
All input properties are implicitly available as output properties. Additionally, the User resource produces the following output properties:
- Descriptor string
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- Id string
- The provider-assigned unique ID for this managed resource.
- Descriptor string
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- Id string
- The provider-assigned unique ID for this managed resource.
- descriptor string
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- id string
- The provider-assigned unique ID for this managed resource.
- descriptor str
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing User Resource
Get an existing User resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: UserState, opts?: CustomResourceOptions): Userstatic get(resource_name, id, opts=None, account_license_type=None, descriptor=None, licensing_source=None, origin=None, origin_id=None, principal_name=None, __props__=None);public static User Get(string name, Input<string> id, UserState? state, CustomResourceOptions? opts = null)- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
The following state arguments are supported:
- Account
License stringType Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- Descriptor string
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- Licensing
Source string The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- Origin string
The type of source provider for the origin identifier.
- Origin
Id string The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- Principal
Name string The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
- Account
License stringType Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- Descriptor string
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- Licensing
Source string The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- Origin string
The type of source provider for the origin identifier.
- Origin
Id string The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- Principal
Name string The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
- account
License stringType Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- descriptor string
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- licensing
Source string The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- origin string
The type of source provider for the origin identifier.
- origin
Id string The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- principal
Name string The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
- account_
license_ strtype Type of Account License. Valid values:
advanced,earlyAdopter,express,none,professional, orstakeholder. Defaults toexpress. In addition the valuebasicis allowed which is an alias forexpressand reflects the name of theexpresslicense used in the Azure DevOps web interface.- descriptor str
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the user graph subject.
- licensing_
source str The source of the licensing (e.g. Account. MSDN etc.) Valid values:
account(Default),auto,msdn,none,profile,trail- origin str
The type of source provider for the origin identifier.
- origin_
id str The unique identifier from the system of origin. Typically a sid, object id or Guid. e.g. Used for member of other tenant on Azure Active Directory.
- principal_
name str The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azuredevops
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuredevopsTerraform Provider.