You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.