microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Add support for Non-Interactive sign-in in Get-MgAuditLogSignIn

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

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

Status: Needs Investigation type:feature
主要言語
C#
スター
898
フォーク
230
平均マージ
2日 5時間
マージ済み PR(30日)
31

説明

Is your feature request related to a problem? Please describe the problem.

Not a direct problem, can be workaround with Get-MgBetaAuditLogSignIn

Get-MgAuditLogSignIn : Invalid filter clause

Describe the solution you'd like.

Add an Attribute in Get-MgAuditLogSignIn instead of a Filter in Get-MgBetaAuditLogSignIn

Stable (Request)

  • Parameter Option 1: SignInType = [Interactive, NonInteractive, Service principal, Managed Identity, All]
  • Parameter Option 2: ShowNonInteractive (isInteractive": false)

Beta (Existing)
$Filter3B = "(signInEventTypes/any(t: t ne 'interactiveUser'))"
$Filter3A = "(signInEventTypes/any(i:i eq 'nonInteractiveUser')) and status/errorCode eq 0"
Get-MgBetaAuditLogSignIn -Filter $Filter3A -Top 10000 -Property *

Additional context?

Get-MgAuditLogSignIn -Filter "signInEventTypes/any(t:t eq 'servicePrincipal')'"

Related to:
https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2753
https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/956
https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/2753
(https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/1261)
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.beta.reports/get-mgbetaauditlogsignin?view=graph-powershell-beta#example-3-retrieve-the-first-10-sign-ins-where-the-signineventtype-is-not-interactiveuser-starting-with-the-latest-sign-in
https://learn.microsoft.com/en-us/powershell/module/microsoft.graph.reports/get-mgauditlogsignin?view=graph-powershell-1.0
https://learn.microsoft.com/en-us/graph/api/signin-get?view=graph-rest-1.0&tabs=http

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

Get-MgAuditLogSignIn とその安定版ドキュメントから始め、サインイン イベントのフィルター処理に関する beta の例とリンクされた issue を比較します。安定版の cmdlet が beta のフィルター回避策なしで非対話型サインインを取得でき、選択したパラメーターの動作が明確に定義されていれば完了です。

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

評価

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

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

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