Skip to content

README out of sync: stale auto-update claim and Register-IntuneAssignmentCheckerApp.ps1 permissions/output drift post-v4.0 #124

@ugurkocde

Description

@ugurkocde

After the v4.0 module conversion (b2378c5) and the GitHub-release install note (7feb343), a few doc items have fallen out of sync with the code.

1. README.md:107 — "Built-in auto-update functionality" no longer accurate

The Features section still lists:

  • 🔄 Built-in auto-update functionality

v4.0 removed the GitHub self-update path. Module/IntuneAssignmentChecker/Public/Connect-IntuneAssignmentChecker.ps1:41-58 now only performs a PSGallery version check and prints:

Run 'Update-Module IntuneAssignmentChecker' to upgrade.

The v4.0 commit message itself states: "PSGallery version check (replaces GitHub self-update)". Suggest either removing the bullet or rewording to "Version check against PowerShell Gallery on connect".

2. Register-IntuneAssignmentCheckerApp.ps1 permissions list disagrees with README's required permissions table

README Required Permissions (lines 138–148) lists 9 permissions. The automated-setup script creates the app registration with only 7, and the two sets don't fully overlap:

Register-IntuneAssignmentCheckerApp.ps1:44-53 grants:

  • User.Read.All
  • Group.Read.All
  • Device.Read.All
  • DeviceManagementApps.Read.All
  • DeviceManagementConfiguration.Read.All
  • DeviceManagementManagedDevices.Read.All
  • DeviceManagementServiceConfig.Read.All ← not in README, not checked by Connect-IntuneAssignmentChecker.ps1:68-78

Missing from the script but required by README and verified by Connect-IntuneAssignmentChecker.ps1:68-78:

  • DeviceManagementScripts.Read.All (platform/health scripts)
  • CloudPC.Read.All (Windows 365)
  • DeviceManagementRBAC.Read.All (scope tags)

Consequence: users who follow README.md:277 ("Automated Setup Available → Run the automation script") end up with an app registration that immediately trips the "missing permissions" warning on first connect. Either update the script's $permissions array to match the 9 in Connect-IntuneAssignmentChecker.ps1:68-78, or scope the README table down to what the automated script actually grants and document the extras as opt-in.

3. Register-IntuneAssignmentCheckerApp.ps1:125-128 prints a v3-era command

The "next steps" output still tells the user to run:

.\IntuneAssignmentChecker.ps1 -CertificateThumbprint "..." -TenantId "..." -AppId "..."

There is no such IntuneAssignmentChecker.ps1 at the repo root in v4.0 — the project is a module. The correct equivalent is:

Connect-IntuneAssignmentChecker -AppId "<appId>" -TenantId "<tenantId>" -CertificateThumbprint "<thumbprint>"
IntuneAssignmentChecker   # launches the interactive menu

README examples (lines 197-205, 306-309) already use the new Connect-IntuneAssignmentChecker cmdlet, so the helper script's final hint is the only remaining place still pointing at the v3 entry point.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions