Skip to main content
Version: Insiders

Get-EasyGroup

SYNOPSIS

Get EasyLife Unified Groups from the Graph API.

SYNTAX

byDisplayName (Default)

Get-EasyGroup [-DisplayName <String>] [-Top <Int32>] [-PropertySet <Object>] [<CommonParameters>]

byId

Get-EasyGroup [-Id <String>] [-PropertySet <Object>] [<CommonParameters>]

all

Get-EasyGroup [-Top <Int32>] [-All] [-PropertySet <Object>] [<CommonParameters>]

DESCRIPTION

This function uses Get-MgGroup to retrieve Unified Groups from the Graph API. It expands properties relevant to EasyLife such as policy states and metadata.

EXAMPLES

EXAMPLE 1

Get-EasyGroup

This example returns up to 100 groups and their properties.

EXAMPLE 2

Get-EasyGroup -All

This example returns all groups and their properties.

EXAMPLE 3

Get-EasyGroup -Top 3

This example returns 3 groups and their properties.

EXAMPLE 4

Get-EasyGroup -DisplayName Project

This example returns all groups that have a DisplayName that starts with Project.

EXAMPLE 5

Get-EasyGroup -All -PropertySet Minimum

This example returns all groups with a minimum set of attributes that can be retrieved quickly. The resulting objects will not have the Owners property populated.

PARAMETERS

-Id

Use this parameter to retrieve a group with the specified Id.

Type: String
Parameter Sets: byId
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-DisplayName

Use this parameter to retrieve groups that have a DisplayName that starts with the given value.

Type: String
Parameter Sets: byDisplayName
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Top

Use this parameter to retrieve the specified number of groups.

Type: Int32
Parameter Sets: byDisplayName, all
Aliases:

Required: False
Position: Named
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False

-All

Use this parameter to retrieve all unified groups.

Type: SwitchParameter
Parameter Sets: all
Aliases:

Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False

-PropertySet

Use this parameter to select a set of attributes to be retrieved from the Graph API. This can be useful for automation or when dealing with a large number of objects. Currently, the only available set is Minimum.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None. You cannot pipe values to this cmdlet.

OUTPUTS

[ELGroup] This function returns object of the type ELGroup.

NOTES

None.

https://docs.easylife365.cloud/docs/add-ons/powershell/get-easygroup/