az communication identity token
Note
This reference is part of the communication extension for the Azure CLI (version 2.59.0 or higher). The extension will automatically install the first time you run an az communication identity token command. Learn more about extensions.
This command group has been deprecated and will be removed in a future release. Use 'communication user-identity token' instead.
Commands to manage user tokens for a Communication Service resource.
Commands
Name | Description | Type | Status |
---|---|---|---|
az communication identity token get-for-teams-user |
Exchanges an Azure Active Directory (Azure AD) access token of a Teams user for a new ACS Identity access token with a matching expiration time. |
Extension | Deprecated |
az communication identity token issue |
Issues a new access token with the specified scopes for a given User Identity. If no User Identity is specified, creates a new User Identity as well. |
Extension | Deprecated |
az communication identity token revoke |
Revokes all access tokens for the specific ACS Identity. |
Extension | Deprecated |
az communication identity token get-for-teams-user
This command is implicitly deprecated because command group 'communication identity token' is deprecated and will be removed in a future release. Use 'communication user-identity token' instead.
Exchanges an Azure Active Directory (Azure AD) access token of a Teams user for a new ACS Identity access token with a matching expiration time.
az communication identity token get-for-teams-user --aad-token
--aad-user
--client
[--connection-string]
Examples
Get token for teams user
az communication identity token get-for-teams-user --aad-token "aad-123-xyz" --client "app-id-123-xyz" --aad-user "uid"
Required Parameters
Azure AD access token of a Teams User.
Object ID of an Azure AD user(Teams User) to be verified against the OID claim in the Azure AD access token.
Client ID of an Azure AD applicationto be verified against the appId claim in the Azure AD access token.
Optional Parameters
Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.
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 communication identity token issue
This command is implicitly deprecated because command group 'communication identity token' is deprecated and will be removed in a future release. Use 'communication user-identity token' instead.
Issues a new access token with the specified scopes for a given User Identity. If no User Identity is specified, creates a new User Identity as well.
az communication identity token issue --scope
[--connection-string]
[--user]
Examples
Issue access token
az communication identity token issue --scope chat
Issue access token with multiple scopes and user
az communication identity token issue --scope chat voip --user "8:acs:xxxxxx"
Required Parameters
List of scopes for an access token ex: chat/voip.
Optional Parameters
Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.
ACS identifier.
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 communication identity token revoke
This command is implicitly deprecated because command group 'communication identity token' is deprecated and will be removed in a future release. Use 'communication user-identity token' instead.
Revokes all access tokens for the specific ACS Identity.
az communication identity token revoke --user
[--connection-string]
[--yes]
Examples
Revoke access tokens
az communication identity token revoke --user "8:acs:xxxxxx"
Required Parameters
ACS identifier.
Optional Parameters
Communication connection string. Environment variable: AZURE_COMMUNICATION_CONNECTION_STRING.
Do not prompt for confirmation.
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.