Public/Set-PegasusAdminOrgUnit.ps1
<# .SYNOPSIS Connects to the Microsoft Graph and reads all users. Useful for joining. .EXAMPLE Set-PegasusAdminOrgUnit #> function Set-PegasusAdminOrgUnit { [CmdletBinding()] Param ( [Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true)] [string] $id, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string] $longname, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string] $sourceid, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string] $partition, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string] $shortname, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string] $displayname, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string] $parent, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string] $source, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string[]] $managers, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [string[]] $deputies, [Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true)] [System.Collections.ArrayList] $roleassignments ) Process { #Invoke-PegasusRequest -Endpoint "/admin/orgunits" | ForEach-Object { $_ } $PSCmdlet.MyInvocation.BoundParameters Write-Host $id Write-Host $longname Write-Host $sourceid throw "New-PegasusAdminPerson not implemented" } } |