Interface ISharePointAdmin
SharePoint Admin features
Namespace: PnP.Core.Admin.Model.SharePoint
Assembly: PnP.Core.Admin.dll
Syntax
public interface ISharePointAdmin
SharePoint Admin features
public interface ISharePointAdmin
Connects a site collection to a hub site. This method can also connect the site collection when the hub site requires approval for connecting new sites.
void ConnectToHubSite(Uri siteCollectionUrlToConnect, Uri hubSiteCollectionUrl, VanityUrlOptions vanityUrlOptions = null)
Uri
siteCollectionUrlToConnect
Uri of the site collection to connect to the hub |
Uri
hubSiteCollectionUrl
Uri of the hub to connect the site collection to |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Connects a site collection to a hub site. This method can also connect the site collection when the hub site requires approval for connecting new sites.
Task ConnectToHubSiteAsync(Uri siteCollectionUrlToConnect, Uri hubSiteCollectionUrl, VanityUrlOptions vanityUrlOptions = null)
Uri
siteCollectionUrlToConnect
Uri of the site collection to connect to the hub |
Uri
hubSiteCollectionUrl
Uri of the hub to connect the site collection to |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task
|
Returns a Pn
PnPContext GetTenantAdminCenterContext(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Pn Pn |
Returns a Pn
Task<PnPContext> GetTenantAdminCenterContextAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<Pn Pn |
Returns the SharePoint tenant admin center url (e.g. https://contoso-admin.sharepoint.com)
Uri GetTenantAdminCenterUri(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Uri
SharePoint tenant admin center url |
Returns the SharePoint tenant admin center url (e.g. https://contoso-admin.sharepoint.com)
Task<Uri> GetTenantAdminCenterUriAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<Uri>
SharePoint tenant admin center url |
Returns a list of IShare
List<ISharePointUser> GetTenantAdmins(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Pn List of SharePoint Online Tenant admins |
Returns a list of IShare
Task<List<ISharePointUser>> GetTenantAdminsAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<Pn List of SharePoint Online Tenant admins |
Returns the SharePoint tenant my site host url (e.g. https://contoso-my.sharepoint.com)
Uri GetTenantMySiteHostUri(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Uri
SharePoint tenant my site host url |
Returns the SharePoint tenant my site host url (e.g. https://contoso-my.sharepoint.com)
Task<Uri> GetTenantMySiteHostUriAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<Uri>
SharePoint tenant my site host url |
Returns the SharePoint tenant portal url (e.g. https://contoso.sharepoint.com)
Uri GetTenantPortalUri(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Uri
SharePoint tenant portal url |
Returns the SharePoint tenant portal url (e.g. https://contoso.sharepoint.com)
Task<Uri> GetTenantPortalUriAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<Uri>
SharePoint tenant portal url |
Gets the properties of this tenant
ITenantProperties GetTenantProperties(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
ITenant Properties of the tenant |
Gets the properties of this tenant
Task<ITenantProperties> GetTenantPropertiesAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<ITenant Properties of the tenant |
Gets the managed properties from the search configuration of the tenant
List<IManagedProperty> GetTenantSearchConfigurationManagedProperties(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Pn List of managed properties |
Gets the managed properties from the search configuration of the tenant
Task<List<IManagedProperty>> GetTenantSearchConfigurationManagedPropertiesAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<Pn List of managed properties |
Gets the search configuration of the tenant
string GetTenantSearchConfigurationXml(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
System. Search configuration XML |
Gets the search configuration of the tenant
Task<string> GetTenantSearchConfigurationXmlAsync(VanityUrlOptions vanityUrlOptions = null)
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task<System. Search configuration XML |
Checks if the current user is SharePoint Online tenant admin
bool IsCurrentUserTenantAdmin()
System. True if the user is a SharePoint Online tenant admin, false otherwise |
Checks if the current user is SharePoint Online tenant admin
Task<bool> IsCurrentUserTenantAdminAsync()
Task<System. True if the user is a SharePoint Online tenant admin, false otherwise |
Sets the search configuration for the tenant
void SetTenantSearchConfigurationXml(string configuration, VanityUrlOptions vanityUrlOptions = null)
System. Search configuration, obtained via Get |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Sets the search configuration for the tenant
Task SetTenantSearchConfigurationXmlAsync(string configuration, VanityUrlOptions vanityUrlOptions = null)
System. Search configuration, obtained via Get |
Vanity Optionally specify the custom vanity URI's used by this tenant |
Task
|