Azure / Azure/azure-cli

Add support for refreshing the access token of an account

Open
#29,185 4 comments 10 reactions 2 assignees Claimed by @jiasli View on GitHub
Account act-identity-squad ARM Auto-Assign Azure CLI Team customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az account`

**Is your feature request related to a problem? Please describe.**
Some scenarios require refreshing the cached access token of an account, for example when user's group membership changes as a consequence of [PIM for Groups](https://learn.microsoft.com/en-us/entra/id-governance/privileged-identity-management/concept-pim-for-groups).

**Describe the solution you'd like**
Provide a mechanism to refresh the cached access token of an account e.g. `az account refresh-access-token`.

**Describe alternatives you've considered**
Waiting for token expiration or performing `az logout` and `az login`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.