Test-PnPOffice365GroupAliasIsUsed

Tests if a given alias is already used used

Syntax

Test-PnPOffice365GroupAliasIsUsed
    -Alias <String>
                                     [-Connection <SPOnlineConnection>]

Description

This command allows you to test if a provided alias is used or free, helps decide if it can be used as part of connecting an Office 365 Unified group to an existing classic site collection.

Examples

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

Test-PnPOffice365GroupAliasIsUsed -Alias "MyGroup"

This will test if the alias MyGroup is already used

Parameters

-Alias

Specifies the alias of the group. Cannot contain spaces.

Type:String
Position:Named
Accept pipeline input:False
Accept wildcard characters:False
-Connection

Optional connection to be used by the cmdlet. Retrieve the value for this parameter by either specifying -ReturnConnection on Connect-PnPOnline or by executing Get-PnPConnection.

Type:SPOnlineConnection
Position:Named
Accept pipeline input:False
Accept wildcard characters:False