az staticwebapp users
Manage users of the static app.
Commands
Name | Description | Type | Status |
---|---|---|---|
az staticwebapp users invite |
Create invitation link for specified user to the static app. |
Core | GA |
az staticwebapp users list |
Lists users and assigned roles, limited to users who accepted their invites. |
Core | GA |
az staticwebapp users update |
Updates a user entry with the listed roles. Either user details or user id is required. |
Core | GA |
az staticwebapp users invite
Create invitation link for specified user to the static app.
az staticwebapp users invite --authentication-provider
--domain
--invitation-expiration-in-hours
--name
--roles
--user-details
[--resource-group]
Examples
Create invitation link for specified user to the static app.
az staticwebapp users invite -n MyStaticAppName --authentication-provider GitHub --user-details JohnDoe --role Contributor --domain static-app-001.azurestaticapps.net --invitation-expiration-in-hours 1
Required Parameters
Authentication provider of the user identity such as AAD, Facebook, GitHub, Google, Twitter.
A domain added to the static app in quotes.
This value sets when the link will expire in hours. The maximum is 168 (7 days).
Name of the static site.
Comma-separated default or user-defined role names. Roles that can be assigned to a user are comma separated and case-insensitive (at most 50 roles up to 25 characters each and restricted to 0-9,A-Z,a-z, and _). Define roles in routes.json during root directory of your GitHub repo.
Email for AAD, Facebook, and Google. Account name (handle) for GitHub and Twitter.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az staticwebapp users list
Lists users and assigned roles, limited to users who accepted their invites.
az staticwebapp users list --name
[--authentication-provider]
[--resource-group]
Examples
Lists users and assigned roles.
az staticwebapp users list -n MyStaticAppName
Required Parameters
Name of the static site.
Optional Parameters
Authentication provider of the user identity such as AAD, Facebook, GitHub, Google, Twitter.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az staticwebapp users update
Updates a user entry with the listed roles. Either user details or user id is required.
az staticwebapp users update --name
--roles
[--authentication-provider]
[--resource-group]
[--user-details]
[--user-id]
Examples
Updates a user entry with the listed roles.
az staticwebapp users update -n MyStaticAppName --user-details JohnDoe --role Contributor
Required Parameters
Name of the static site.
Comma-separated default or user-defined role names. Roles that can be assigned to a user are comma separated and case-insensitive (at most 50 roles up to 25 characters each and restricted to 0-9,A-Z,a-z, and _). Define roles in routes.json during root directory of your GitHub repo.
Optional Parameters
Authentication provider of the user identity such as AAD, Facebook, GitHub, Google, Twitter.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Email for AAD, Facebook, and Google. Account name (handle) for GitHub and Twitter.
Given id of registered user.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.