Azure / Azure/azure-devops-cli-extension

[Feature Request] Ability to query username for currently logged in user

Open
#1,090 0 comments 2 reactions 0 assignees View on GitHub
Feature
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

**Is your feature request related to a problem? Please describe.**
I would like to filter resources for the *currently logged in* user within a JMESpath `--query` (without knowing the username). So in order to pass the username into the query, I would need a way to retrieve the login name of the currently logged in user first.

**Describe the solution you'd like**
For example: `az devops account show` should return login context information of the currently logged in user, including his username.

**Additional context**
Note: I tried `az account show`, but that errors and tells me:
> Please run 'az login' to setup account.

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.