Skip to content

v1.6.0

Choose a tag to compare

@Hawkode Hawkode released this 27 Nov 12:00
· 52 commits to main since this release

Added

  • Setup/New-IamAppRegistration.ps1: creates your own app registration for sign-in. Single tenant, public client (http://localhost and the Windows broker redirect URI), delegated Microsoft Graph scopes only, admin consent once for the organisation, Assignment required with the operators you name (-OperatorGroup, -OperatorUpn), then writes GraphClientId to config.local.psd1 after a backup. -WhatIf shows the plan and creates nothing.
  • Config key GraphClientId (optional). When set, Connect-IamGraph signs in through that app instead of Microsoft Graph Command Line Tools, so operators who are not admins can sign in without consent prompts.
  • Get-IamGraphAppScope: every delegated scope the scripts request. A test keeps it in step with the Connect-IamGraph calls.

Changed

  • Connect-IamGraph logs which app it signed in through.

Tested in the lab

  • New-IamAppRegistration.ps1 -OperatorGroup: -WhatIf, then a real run. A User Administrator refused with "Need admin approval" through Microsoft Graph Command Line Tools signed in through the new app with no consent prompt, and a background script signed in silently through it.