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

オープン
#1,411 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
18/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
azure, csharp
領域
cli, design

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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)

主要言語
C#
スター
18
フォーク
10
平均マージ
1日 20時間
マージ済み PR(30日)
157

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Azure/azclips のほかの issue

Azure/azclips の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。