Table of Contents

Class CommonGroupSiteOptions

Namespace
PnP.Core.Admin.Model.SharePoint
Assembly
PnP.Core.Admin.dll

Generic site collection creation options that apply for all types of site collections that are backed by a Microsoft 365 group

public abstract class CommonGroupSiteOptions : CommonSiteOptions
Inheritance
CommonGroupSiteOptions
Derived
Inherited Members

Constructors

CommonGroupSiteOptions(string, string)

Default constructor to configure the common options for group connected sites

public CommonGroupSiteOptions(string alias, string displayName)

Parameters

alias string

Alias for the group to create

displayName string

Display name for the group to create

Properties

AdditionalData

Option to add custom data to the post request for creating a group like the custom property for a EducationClass

public IDictionary<string, object> AdditionalData { get; set; }

Property Value

IDictionary<string, object>

Alias

Alias of the underlying Office 365 Group

public string Alias { get; set; }

Property Value

string

Classification

The Site classification to use. For instance 'Contoso Classified'. See https://www.youtube.com/watch?v=E-8Z2ggHcS0 for more information

public string Classification { get; set; }

Property Value

string

Description

The description of the site to be created.

public string Description { get; set; }

Property Value

string

DisplayName

The title of the site to create

public string DisplayName { get; set; }

Property Value

string

HubSiteId

The Guid of the hub site to be used. If specified will associate the modern team site to the hub site. (not applicable when application permissions are used)

public Guid HubSiteId { get; set; }

Property Value

Guid

IsPublic

Defines whether the Office 365 Group will be public (default), or private.

[Obsolete("Use the Visibility property instead")]
public bool IsPublic { get; set; }

Property Value

bool

PreferredDataLocation

The geography in which to create the site collection. Only applicable to multi-geo enabled tenants

public GeoLocation? PreferredDataLocation { get; set; }

Property Value

GeoLocation?

SensitivityLabelId

The Sensitivity label to use. See https://www.youtube.com/watch?v=NxvUXBiPFcw for more information. (not applicable when application permissions are used)

public Guid SensitivityLabelId { get; set; }

Property Value

Guid

SiteAlias

SiteAlias of the underlying Office 365 Group, i.e. the site part of the url: https://contoso.sharepoint.com/sites/<SiteAlias> (not applicable when application permissions are used)

public string SiteAlias { get; set; }

Property Value

string

Visibility

Defines whether the Office 365 Group will be public (default), or private or hiddenMembership.

public GroupVisibility Visibility { get; set; }

Property Value

GroupVisibility