Search Results for

    Show / Hide Table of Contents

    Interface ISiteCollectionAdmin

    Defines a site collection administrator

    Namespace: PnP.Core.Admin.Model.SharePoint
    Assembly: PnP.Core.Admin.dll
    Syntax
    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

    Declaration
    Guid Id { get; }
    Property Value
    Guid

    IsMicrosoft365GroupOwner

    Site collection admin is also a Microsoft 365 group owner

    Declaration
    bool IsMicrosoft365GroupOwner { get; }
    Property Value
    System.Boolean

    IsSecondaryAdmin

    Is this a secondary site collection administrator

    Declaration
    bool IsSecondaryAdmin { get; }
    Property Value
    System.Boolean

    LoginName

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

    Declaration
    string LoginName { get; }
    Property Value
    System.String

    Mail

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

    Declaration
    string Mail { get; }
    Property Value
    System.String

    Name

    Name of the admin.

    Declaration
    string Name { get; }
    Property Value
    System.String

    UserPrincipalName

    User principle name (UPN) of the site collection administrator

    Declaration
    string UserPrincipalName { get; }
    Property Value
    System.String

    Methods

    SetAsPrimarySiteCollectionAdministrator(Uri)

    Set site collection admin as primary admin

    Declaration
    void SetAsPrimarySiteCollectionAdministrator(Uri site)
    Parameters
    Uri site

    SetAsPrimarySiteCollectionAdministratorAsync(Uri)

    Set site collection admin as primary admin

    Declaration
    Task SetAsPrimarySiteCollectionAdministratorAsync(Uri site)
    Parameters
    Uri site

    Returns
    Task

    Back to top PnP Core SDK
    Generated by DocFX with Material UI
    spacer