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

Abierto
#1,411 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
18/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
azure, csharp
Área
cli, design

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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)

Lenguaje dominante
C#
Estrellas
18
Forks
10
Merge medio
1 d 20 h
PR fusionados (30 d)
157

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Azure/azclips

Todos los issues de Azure/azclips

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.