Skip to content

[codex] Improve guest and user sign-in review reports#17

Merged
PrzemyslawKlys merged 3 commits into
masterfrom
codex/improve-user-guest-reporting
Apr 13, 2026
Merged

[codex] Improve guest and user sign-in review reports#17
PrzemyslawKlys merged 3 commits into
masterfrom
codex/improve-user-guest-reporting

Conversation

@PrzemyslawKlys

Copy link
Copy Markdown
Member

Summary

Improve the user and guest reporting views so guest, external, and cloud-only accounts are easier to identify, sort, and review.

What Changed

  • add successful sign-in fields and sign-in pattern cues to the user and guest datasets
  • expand the Users report with clearer cloud-only member review slices and successful sign-in summaries
  • expand the Guests report with stronger external-account confirmation views, including no-successful-sign-in, recent, stale, privileged, and licensed tabs

Why

The existing reporting made it harder to distinguish cloud-only member accounts from guest or external identities and to quickly confirm which external accounts exist and how recently they were actually used.

Impact

  • faster review of cloud-only member accounts that may need follow-up
  • better confirmation of which guest and external accounts exist in the tenant
  • easier sorting and filtering for stale, privileged, licensed, and never-successful external identities

Validation

  • PowerShell parser checks passed for the updated reporting files
  • verified git diff scope before staging and publishing

- add successful sign-in data and review cues to user and guest reporting
- add dedicated cloud-only member and external account review slices
- expand guest/external sorting views for stale, privileged, licensed, and no-successful-sign-in accounts
@PrzemyslawKlys PrzemyslawKlys marked this pull request as ready for review April 13, 2026 09:13

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8030e5ebb6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Public/Get-MyGuest.ps1 Outdated
LastSuccessfulSignInDateTime = if ($Guest.SignInActivity) { $Guest.SignInActivity.LastSuccessfulSignInDateTime } else { $null }
LastSuccessfulSignInDaysAgo = $LastSuccessfulSignInDaysAgo
NeverSignedIn = ($null -eq $LastSignInDaysAgo -and $null -eq $LastNonInteractiveSignInDaysAgo)
NeverSuccessfullySignedIn = ($null -eq $LastSuccessfulSignInDaysAgo)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Treat missing guest sign-in telemetry as unknown

When SignInActivity is unavailable (for example, tenants running without the extra audit permission), LastSuccessfulSignInDaysAgo is $null, and this code marks every such guest as NeverSuccessfullySignedIn = $true. That inflates the new “No Successful Sign-in” counters/tabs and mixes unknown telemetry with true no-success accounts. Get-MyUser already distinguishes this case by setting the flag to $null, so the guest path should do the same to keep reports accurate.

Useful? React with 👍 / 👎.

- keep missing guest sign-in activity distinct from true no-successful-sign-in cases
- restore successful sign-in guest fields used by the external account report

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cbd1065003

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread Public/Get-MyUser.ps1 Outdated
$OutputUser['Licenses'] = $LicensesList
$OutputUser['Plans'] = $Plans

$IsCloudOnlyMemberCandidate = $User.AccountEnabled -eq $true -and $User.UserType -eq 'Member' -and $User.OnPremisesSyncEnabled -eq $false

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Treat null sync state as cloud-only candidate

IsCloudOnlyMemberCandidate currently requires OnPremisesSyncEnabled -eq $false, which excludes member accounts where Graph returns a null sync flag; those users then never enter the new cloud-only member tabs/review queue even though this codebase elsewhere treats null as cloud-only (IsCloudOnly = -not $User.OnPremisesSyncEnabled in New-MyUserAuthenticationObject). This causes inconsistent and undercounted cloud-only reporting for tenants that return null sync state.

Useful? React with 👍 / 👎.

- treat null OnPremisesSyncEnabled values as cloud-only candidates for member review
- add an explicit review signal when sync state is unavailable
@PrzemyslawKlys PrzemyslawKlys merged commit 17073fa into master Apr 13, 2026
2 checks passed
@PrzemyslawKlys PrzemyslawKlys deleted the codex/improve-user-guest-reporting branch April 13, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant