Table of Contents

Interface ISiteCollectionAdmin

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

Defines a site collection administrator

public interface ISiteCollectionAdmin

Properties

Id

Gets the id of the site collection administrator when the administrator is added due to being an Microsoft 365 Group owner

Guid Id { get; }

Property Value

Guid

IsMicrosoft365GroupOwner

Site collection admin is also a Microsoft 365 group owner

bool IsMicrosoft365GroupOwner { get; }

Property Value

bool

IsSecondaryAdmin

Is this a secondary site collection administrator

bool IsSecondaryAdmin { get; }

Property Value

bool

LoginName

Gets the login name of the site collection administrator when the administrator is added as a SharePoint administrator

string LoginName { get; }

Property Value

string

Mail

E-mail address of the site collection administrator SP REST property name: Email

string Mail { get; }

Property Value

string

Name

Name of the admin.

string Name { get; }

Property Value

string

UserPrincipalName

User principle name (UPN) of the site collection administrator

string UserPrincipalName { get; }

Property Value

string

Methods

SetAsPrimarySiteCollectionAdministrator(Uri)

Set site collection admin as primary admin

void SetAsPrimarySiteCollectionAdministrator(Uri site)

Parameters

site Uri

SetAsPrimarySiteCollectionAdministratorAsync(Uri)

Set site collection admin as primary admin

Task SetAsPrimarySiteCollectionAdministratorAsync(Uri site)

Parameters

site Uri

Returns

Task