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
IsMicrosoft365GroupOwner
Site collection admin is also a Microsoft 365 group owner
bool IsMicrosoft365GroupOwner { get; }
Property Value
IsSecondaryAdmin
Is this a secondary site collection administrator
bool IsSecondaryAdmin { get; }
Property Value
LoginName
Gets the login name of the site collection administrator when the administrator is added as a SharePoint administrator
string LoginName { get; }
Property Value
E-mail address of the site collection administrator SP REST property name: Email
string Mail { get; }
Property Value
Name
Name of the admin.
string Name { get; }
Property Value
UserPrincipalName
User principle name (UPN) of the site collection administrator
string UserPrincipalName { get; }
Property Value
Methods
SetAsPrimarySiteCollectionAdministrator(Uri)
Set site collection admin as primary admin
void SetAsPrimarySiteCollectionAdministrator(Uri site)
Parameters
siteUri
SetAsPrimarySiteCollectionAdministratorAsync(Uri)
Set site collection admin as primary admin
Task SetAsPrimarySiteCollectionAdministratorAsync(Uri site)
Parameters
siteUri