Skip to content

Latest commit

 

History

History
71 lines (45 loc) · 2.93 KB

user_entitlement.html.markdown

File metadata and controls

71 lines (45 loc) · 2.93 KB
layout page_title description
azuredevops
AzureDevops: azuredevops_user_entitlement
Manages a user entitlement within Azure DevOps organization.

azuredevops_user_entitlement

Manages a user entitlement within Azure DevOps.

Example Usage

resource "azuredevops_user_entitlement" "example" {
  principal_name = "[email protected]"
}

Argument Reference

  • principal_name - (Optional) The principal name is the PrincipalName of a graph member from the source provider. Usually, e-mail address.

  • origin_id - (Optional) 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.

  • origin - (Optional) The type of source provider for the origin identifier.

  • account_license_type - (Optional) Type of Account License. Valid values: advanced, earlyAdopter, express, none, professional, or stakeholder. Defaults to express. In addition the value basic is allowed which is an alias for express and reflects the name of the express license used in the Azure DevOps web interface.

  • licensing_source - (Optional) The source of the licensing (e.g. Account. MSDN etc.) Valid values: account (Default), auto, msdn, none, profile, trial

~> NOTE: A user can only be referenced by it's principal_name or by the combination of origin_id and origin.

Attributes Reference

The following attributes are exported:

  • id - The id of the entitlement.
  • descriptor - 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.

Relevant Links

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • create - (Defaults to 10 minutes) Used when creating the User Entitlement.
  • read - (Defaults to 5 minute) Used when retrieving the User Entitlement.
  • update - (Defaults to 10 minutes) Used when updating the User Entitlement.
  • delete - (Defaults to 10 minutes) Used when deleting the User Entitlement.

Import

This resource allows importing by the UUID of a user entitlement or by using the principal name of a user who owns the entitlement.

terraform import azuredevops_user_entitlement.example "00000000-0000-0000-0000-000000000000"

or

terraform import azuredevops_user_entitlement.example "[email protected]"

PAT Permissions Required

  • Member Entitlement Management: Read & Write