Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
weyCC81 opened this issue Aug 12, 2024 · 0 comments
Open

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

weyCC81 opened this issue Aug 12, 2024 · 0 comments
Labels

Comments

@weyCC81
Copy link

weyCC81 commented Aug 12, 2024

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:
#2753
#956
#2753
(#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

@weyCC81 weyCC81 added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:feature New experience request labels Aug 12, 2024
@timayabi2020 timayabi2020 added Status: Needs Investigation and removed status:waiting-for-triage An issue that is yet to be reviewed or assigned labels Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants