[MsGraph] Onboard signed-in user + owned objects command model

Aperta
#1,411 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure, csharp
Ambito
cli, design

Direzione di ricerca

This is a command-surface design decision, not an edit: start by reading how existing az msgraph commands are registered and how the PowerShell Get-AzMsGraphUser -SignedIn behaves, then compare with classic az ad signed-in-user show and list-owned-objects. The open questions (noun choice, --signed-in flag vs new noun, whether owned-object lookup is in scope) must be settled by PM/design before any code is written. Done means an approved command shape, stable output contracts, help text explaining "owned objects", and migration guidance documented.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

act-identity-squad

Target surface

CLI (az)

What problem are you trying to solve?

Summary

We need to add/shape signed-in user commands in az msgraph with a model that is intuitive, consistent with PowerShell, and future-proof for classic parity scenarios like:

  • az ad signed-in-user show
  • az ad signed-in-user list-owned-objects

Current state is we have a PS command for user show Get-AzMsGraphUser -SignedIn but no CLI equivalent

We can decide if we want to onboard `az ad signed-in-user list-owned-objects' like command as part of this work item or keep it of later.

Key design constraints

  • Keep parity with PS mental model where reasonable.
  • Preserve the meaning of owned (do not lose semantics by over-generic naming).
  • Avoid flags that completely change output shape on the same command (user object vs directory objects).
  • Keep discoverability high for common self-lookup scenarios.

Problem to solve

Define the command surface for:

  1. Signed-in user profile lookup.
  2. Signed-in user owned directory objects lookup.
  3. (Optional/future) owned objects lookup for arbitrary user ID.

Open questions for PM/Design

  • Should we prioritize strict classic command-shape parity, or modernized msgraph surface consistency?
  • Do we want a new noun (signed-in-user, me, or objects)?
  • Should non-signed-in owned-object lookup (--id <user>) be included now or deferred?

Acceptance criteria

  • Final command shape approved by PM/design.
  • Help text clearly explains “owned objects” semantics.
  • Output contracts are stable and command-specific (no shape-switching flags on show).
  • Migration guidance from classic az ad signed-in-user * is documented.

Proposed solution

Signed-in show

We discussed multiple CLI shapes:

  1. az msgraph user signed-in
  2. az msgraph user show --signed-in
  3. az msgraph signed-in-user show
  4. az msgraph me show

Current preference is 2 (az msgraph user show --signed-in) for PS consistency and cleaner command grammar, but the decision must also account for onboarding classic list-owned-objects.

Why this shape
  • Aligns with PS mental model (Get-AzMsGraphUser -SignedIn).
  • Keeps user show as the canonical entry point.
  • Avoids introducing a new noun (signed-in-user) in msgraph

Signed-in user owned objects

  • Prefer a dedicated command that keeps “owned” explicit, e.g.:
    • az msgraph objects list --owned-by-signed-in-user
    • or az msgraph user owned-object list --signed-in

(avoid --list-owned-objects on user show because it changes output contract)

Lingua principale
C#
Stelle
18
Fork
10
Merge medio
1g 20h
PR unite (30g)
157

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/azclips

Tutte le issue di Azure/azclips

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.