Interface ISiteCollectionAdmin
Defines a site collection administrator
Namespace: PnP.Core.Admin.Model.SharePoint
Assembly: PnP.Core.Admin.dll
Syntax
public interface ISiteCollectionAdmin
  
Defines a site collection administrator
public interface ISiteCollectionAdmin
  Gets the id of the site collection administrator when the administrator is added due to being an Microsoft 365 Group owner
Guid Id { get; }
  | 
        Guid
         
  | 
    
Site collection admin is also a Microsoft 365 group owner
bool IsMicrosoft365GroupOwner { get; }
  | 
        System.Boolean
         
  | 
    
Is this a secondary site collection administrator
bool IsSecondaryAdmin { get; }
  | 
        System.Boolean
         
  | 
    
Gets the login name of the site collection administrator when the administrator is added as a SharePoint administrator
string LoginName { get; }
  | 
        System.String
         
  | 
    
E-mail address of the site collection administrator SP REST property name: Email
string Mail { get; }
  | 
        System.String
         
  | 
    
Name of the admin.
string Name { get; }
  | 
        System.String
         
  | 
    
User principle name (UPN) of the site collection administrator
string UserPrincipalName { get; }
  | 
        System.String
         
  | 
    
Set site collection admin as primary admin
void SetAsPrimarySiteCollectionAdministrator(Uri site)
  | 
        Uri
        site
         
  | 
    
Set site collection admin as primary admin
Task SetAsPrimarySiteCollectionAdministratorAsync(Uri site)
  | 
        Uri
        site
         
  | 
    
| 
        Task
         
  |