< Back

Set-DOffice365Group

Mon Jan 13, 2020 6:46 pm

NAME Set-DOffice365Group



SYNOPSIS

Assigns an existing Office 365 group to an OU in Delegate365.





SYNTAX

Set-DOffice365Group -Identity <string> [-OU <string>] [-PrimarySmtpAddress <string>] [<CommonParameters>]





DESCRIPTION

Set-DOffice365Group assigns an existing Office 365 group to an OU in Delegate365. An existing OU assignment is

overwritten. If the Office 365 group is unassigned, it gets assigned. As parameters, the Identity and the OU name

must be provided. The output shows the Office 365 group object and an operation status. For a successful

operation, the Error property is False and the Message property is empty.





PARAMETERS

-Identity <string>

Find a specific item. Wildcards are not supported, use the email address or the ID.



Required? true

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-PrimarySmtpAddress <string>

The PrimarySmtpAddress can be used instead of the Identity parameter.



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue, ByPropertyName)

Accept wildcard characters? false



-OU <string>

Setting the OU name assigns the Office 365 group to that OU.



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

System.String

Find a specific item. Wildcards are not supported, use the email address or the ID.



System.String

The PrimarySmtpAddress can be used instead of the Identity parameter.





OUTPUTS

Delegate365.Api.Core.Models.SetGroupAssign[]





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



Set-DOffice365Group -Identity project-tango@delegate365.com -OU Chicago



Assign an Office 365 group to an OU. The Identity must be provided by email address or by ID.

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



Set-DOffice365Group -PrimarySmtpAddress project-tango@delegate365.com -OU Chicago



Alternatively, use the PrimarySmtpAddress parameter.



RELATED LINKS

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