< Back

Get-DOrganizationalUnit

Mon Jan 13, 2020 6:39 pm

NAME Get-DOrganizationalUnit



SYNOPSIS

Gets one or multiple OUs from Delegate365.





SYNTAX

Get-DOrganizationalUnit [-All <SwitchParameter>] [-Identity <string>] [<CommonParameters>]





DESCRIPTION

Get-DOrganizationalUnit returns a list of OUs from Delegate365. Organizational Units (OUs) are used as container

to allow delegated management within Delegate365. Parameters allow to get all OUs or one specific OU. Filter for

one OU by using the -Identity Parameter and the full name or the ID. The output shows the ID and the name of each

OU.





PARAMETERS

-All <SwitchParameter>

Delivers all OUs that are not assigned to an OU.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-Identity <string>

Filter for one specific OU. Wildcards are not supported, use the full name or the ID.



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS

Delegate365.Api.Core.Models.OrganizationalUnit[]





---------- EXAMPLE 1 ----------



Get-DOrganizationalUnit



By default, the command returns the first 100 assigned OUs.

---------- EXAMPLE 2 ----------



Get-DOrganizationalUnit -All



Add -All to get all OUs.

---------- EXAMPLE 3 ----------



Get-DOrganizationalUnit -Unassigned -All



Add -Unassigned to get OUs that are NOT assigned to an OU (can be combined with -All).

---------- EXAMPLE 4 ----------



Get-DOrganizationalUnit -Identity Seattle



Get one specific OU by name or by ID.



RELATED LINKS

Delegate365 support https://support.delegate365.com/