az devops user

Manage users.

Commands

az devops user add

Add user.

az devops user list

List users in an organization [except for users which are added via AAD groups].

az devops user remove

Remove user from an organization.

az devops user show

Show user details.

az devops user update

Update license type for a user.

az devops user add

Add user.

az devops user add --email-id
                   --license-type {advanced, earlyAdopter, express, professional, stakeholder}
                   [--detect {false, true}]
                   [--org]
                   [--send-email-invite {false, true}]
                   [--subscription]

Required Parameters

--email-id

Email ID of the user.

--license-type

License type for the user.

accepted values: advanced, earlyAdopter, express, professional, stakeholder

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--send-email-invite

Whether to send email invite for new user or not.

accepted values: false, true
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az devops user list

List users in an organization [except for users which are added via AAD groups].

az devops user list [--detect {false, true}]
                    [--org]
                    [--query-examples]
                    [--skip]
                    [--subscription]
                    [--top]

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--skip

Offset: Number of records to skip.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--top

Maximum number of users to return. Max value is 10000.

default value: 100

az devops user remove

Remove user from an organization.

az devops user remove --user
                      [--detect {false, true}]
                      [--org]
                      [--subscription]
                      [--yes]

Required Parameters

--user

Email ID or ID of the user.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y

Do not prompt for confirmation.

az devops user show

Show user details.

az devops user show --user
                    [--detect {false, true}]
                    [--org]
                    [--query-examples]
                    [--subscription]

Required Parameters

--user

Email ID or ID of the user.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az devops user update

Update license type for a user.

az devops user update --license-type {advanced, earlyAdopter, express, professional, stakeholder}
                      --user
                      [--detect {false, true}]
                      [--org]
                      [--subscription]

Required Parameters

--license-type

License type for the user.

accepted values: advanced, earlyAdopter, express, professional, stakeholder
--user

Email ID or ID of the user.

Optional Parameters

--detect

Automatically detect organization.

accepted values: false, true
--org --organization

Azure DevOps organization URL. You can configure the default organization using az devops configure -d organization=ORG_URL. Required if not configured as default or picked up via git config. Example: https://dev.azure.com/MyOrganizationName/.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.