Public/Permissions/Update-KriticalUtcmAllowedGraphScopes.ps1
|
<# .SYNOPSIS Kritical.UTCM wrapper over Microsoft365DSC helper Update-M365DSCAllowedGraphScopes (category: Permissions, module: M365DSCPermissions). .DESCRIPTION Thin delegating passthrough — logic stays in Microsoft365DSC upstream; Kritical.UTCM provides the friendly namespace + citation registration. Install-Module Microsoft365DSC -Scope CurrentUser BEFORE calling. .NOTES Category: Permissions Module: M365DSCPermissions Params: 4 #> function Update-KriticalUtcmAllowedGraphScopes { [CmdletBinding()] param( [String[]] $ResourceNameList, [SwitchParameter] $All, [Parameter(Mandatory)] [String] $Type, [String] $Environment ) if (-not (Get-Command -Name 'Update-M365DSCAllowedGraphScopes' -ErrorAction SilentlyContinue)) { throw '[KriticalUtcm] Update-M365DSCAllowedGraphScopes not available — Install-Module Microsoft365DSC -Scope CurrentUser then re-run' } try { & 'Update-M365DSCAllowedGraphScopes' @PSBoundParameters } catch { Write-Error ('[KriticalUtcm/Update-KriticalUtcmAllowedGraphScopes] ' + 'Update-M365DSCAllowedGraphScopes' + ' failed: ' + $_.Exception.Message) throw } } |