Interface ISiteCollectionProperties
Properties of a site collection
Namespace: PnP.Core.Admin.Model.SharePoint
Assembly: PnP.Core.Admin.dll
Syntax
public interface ISiteCollectionProperties
Properties of a site collection
public interface ISiteCollectionProperties
Indicates whether end users can download non-viewable files (e.g. zip) from browser. By default, this would be set to true if setting ConditionalAccessPolicy to AllowLimitedAccess. This can be set to false to block automatic download of files that can't be vieweed in the browser
bool AllowDownloadingNonWebViewableFiles { get; set; }
System.Boolean
|
Indicates whether WAC files should be open in Edit mode. By default, this would be set to true if setting ConditionalAccessPolicy to AllowLimitedAccess. This can be set to false to enable view only mode in WAC.
bool AllowEditing { get; set; }
System.Boolean
|
Flag that indicates is a site supports self-service upgrade
bool AllowSelfServiceUpgrade { get; set; }
System.Boolean
|
Anonymous link expiration in days
int AnonymousLinkExpirationInDays { get; set; }
System.Int32
|
Gets or sets the authentication context strength for this site for all the webs
string AuthContextStrength { get; set; }
System.String
|
Gets or sets the authentication context for this site for all the webs
string AuthenticationContextName { get; set; }
System.String
|
Specifies the types of files that can be displayed when the block download links feature is being used
BlockDownloadLinksFileTypes BlockDownloadLinksFileType { get; set; }
BlockDownloadLinksFileTypes
|
Gets or sets the Block download policy flag
bool BlockDownloadPolicy { get; set; }
System.Boolean
|
Clears the Restricted access control groups
bool ClearRestrictedAccessControl { get; set; }
System.Boolean
|
Whether comments on site pages are disabled or not
bool CommentsOnSitePagesDisabled { get; set; }
System.Boolean
|
The compatibility leve of this site
int CompatibilityLevel { get; }
System.Int32
|
Flag that controls access from devices that aren't compliant or joined to a domain to have limited access (web-only, without the Download, Print, and Sync commands)
SPOConditionalAccessPolicyType ConditionalAccessPolicy { get; set; }
SPOConditionalAccessPolicyType
|
The default link permission for this site
SharingPermissionType DefaultLinkPermission { get; set; }
SharingPermissionType
|
The default link to existing access for this site
bool DefaultLinkToExistingAccess { get; set; }
System.Boolean
|
This is to reset default link to existing access for this site. After resetting, the value will be default (false) or respect the higher level value
bool DefaultLinkToExistingAccessReset { get; set; }
System.Boolean
|
Default share link scope
SharingScope DefaultShareLinkScope { get; set; }
SharingScope
|
The default link type for this site
SharingLinkType DefaultSharingLinkType { get; set; }
SharingLinkType
|
Determines whether the site has AddAndCustomizePages denied
DenyAddAndCustomizePagesStatus DenyAddAndCustomizePages { get; set; }
DenyAddAndCustomizePagesStatus
|
Site's description
string Description { get; }
System.String
|
Indicates whether app views are disabled in all the webs of this site
AppViewsPolicy DisableAppViews { get; set; }
AppViewsPolicy
|
Indicates whether company wide sharing links are disabled in all the webs of this site
CompanyWideSharingLinksPolicy DisableCompanyWideSharingLinks { get; set; }
CompanyWideSharingLinksPolicy
|
Indicates whether flows are disabled in all the webs of this site
FlowsPolicy DisableFlows { get; set; }
FlowsPolicy
|
Gets or sets the exclude site owners flag for Block download policy
bool ExcludeBlockDownloadPolicySiteOwners { get; set; }
System.Boolean
|
External user expiration in days
int ExternalUserExpirationInDays { get; set; }
System.Int32
|
The GroupId of the site
Guid GroupId { get; }
Guid
|
The login name of the group owner
string GroupOwnerLoginName { get; }
System.String
|
Flag that indicates a site has Holds
bool HasHolds { get; }
System.Boolean
|
The HubSiteId of the HubSite this site is associated with
Guid HubSiteId { get; }
Guid
|
get or Set IBMode (Information Barrier Mode)
string IBMode { get; set; }
System.String
|
Gets or sets the IB (Information Barrier Mode) segment GUIDs
Guid[] IBSegments { get; set; }
Guid[]
|
Gets or sets the IB (Information Barrier Mode) segments to add
Guid[] IBSegmentsToAdd { get; set; }
Guid[]
|
Gets or sets the IB (Information Barrier Mode) segments to remove
Guid[] IBSegmentsToRemove { get; set; }
Guid[]
|
Whether group owner is site admin
bool IsGroupOwnerSiteAdmin { get; }
System.Boolean
|
Whether or not this site is a HubSite
bool IsHubSite { get; }
System.Boolean
|
Gets if the site is connected to a team channel in Microsoft Teams.
bool IsTeamsChannelConnected { get; }
System.Boolean
|
Gets if the site is connected to a team in Microsoft Teams
bool IsTeamsConnected { get; }
System.Boolean
|
The last time content was modified on the site
DateTime LastContentModifiedDate { get; }
DateTime
|
The Locale ID of the site
int Lcid { get; set; }
System.Int32
|
Specifies what files can be viewed when ConditionalAccessPolicy is set to AllowLimitedAccess
SPOLimitedAccessFileType LimitedAccessFileType { get; set; }
SPOLimitedAccessFileType
|
A description of the lock issue
string LockIssue { get; }
System.String
|
A string representing the lock state of the site. Valid values are
string LockState { get; set; }
System.String
|
Gets or sets the media transcription policy
MediaTranscriptionPolicyType MediaTranscription { get; set; }
MediaTranscriptionPolicyType
|
Indicates what the state of the browse user info policy in the site
SiteUserInfoVisibilityPolicyValue OverrideBlockUserInfoVisibility { get; set; }
SiteUserInfoVisibilityPolicyValue
|
This site overrides the tenant anonymous link expiration policy
bool OverrideTenantAnonymousLinkExpirationPolicy { get; set; }
System.Boolean
|
This site overrides the tenant external user expiration policy
bool OverrideTenantExternalUserExpirationPolicy { get; set; }
System.Boolean
|
The decoded login name of the site owner
string Owner { get; set; }
System.String
|
The email address of the site owner
string OwnerEmail { get; }
System.String
|
The encoded login name of the site owner
string OwnerLoginName { get; }
System.String
|
The site owner name
string OwnerName { get; }
System.String
|
Determines whether PWA is enabled for the site
PWAEnabledStatus PWAEnabled { get; set; }
PWAEnabledStatus
|
Gets or sets the Read only access for unmanaged devices policy flag
bool ReadOnlyForUnmanagedDevices { get; set; }
System.Boolean
|
The GroupId of the group this site is associated with
Guid RelatedGroupId { get; }
Guid
|
Gets or sets request files link enabled
bool RequestFilesLinkEnabled { get; set; }
System.Boolean
|
Gets or sets request files link expiration days
int RequestFilesLinkExpirationInDays { get; set; }
System.Int32
|
Gets or sets the Restricted access control policy flag based on group membership
bool RestrictedAccessControl { get; set; }
System.Boolean
|
Gets or sets the Restricted Access Control Groups
IList<Guid> RestrictedAccessControlGroups { get; set; }
PnP.Core.Model.SharePoint.IList<Guid>
|
Gets or sets the restricted access control groups to be added
IList<Guid> RestrictedAccessControlGroupsToAdd { get; set; }
PnP.Core.Model.SharePoint.IList<Guid>
|
Gets or sets the restricted access control groups to be removed
IList<Guid> RestrictedAccessControlGroupsToRemove { get; set; }
PnP.Core.Model.SharePoint.IList<Guid>
|
Determines whether the site is resticted to a specific geo location
RestrictedToRegion RestrictedToRegion { get; set; }
RestrictedToRegion
|
The Guid of an Information Protection label
Guid SensitivityLabel { get; set; }
Guid
|
The Guid of an Information Protection label
string SensitivityLabel2 { get; set; }
System.String
|
Whether update secondary admin during setting primary admin
bool SetOwnerWithoutUpdatingSecondaryAdmin { get; set; }
System.Boolean
|
A list of allowed domain names for this site
string SharingAllowedDomainList { get; set; }
System.String
|
A list of blocked domain names for this site
string SharingBlockedDomainList { get; set; }
System.String
|
Specifies what type of external user and guest link sharing is enabled
SharingCapabilities SharingCapability { get; set; }
SharingCapabilities
|
Indicates what this site's domain restriction mode is
SharingDomainRestrictionModes SharingDomainRestrictionMode { get; set; }
SharingDomainRestrictionModes
|
Get whether the sharing lock can be cleared
bool SharingLockDownCanBeCleared { get; }
System.Boolean
|
Gets the SharingLockDownEnabled setting
bool SharingLockDownEnabled { get; }
System.Boolean
|
Flag that controls allowing members to search guest users in the directory
bool ShowPeoplePickerSuggestionsForGuestUsers { get; set; }
System.Boolean
|
Specifies what type of external user and guest link sharing is enabled for the site
SharingCapabilities SiteDefinedSharingCapability { get; }
SharingCapabilities
|
Whether social bar on site pages is enabled or not
bool SocialBarOnSitePagesDisabled { get; set; }
System.Boolean
|
The status of the site, possible values are:
string Status { get; }
System.String
|
The Storage Quota
long StorageMaximumLevel { get; set; }
System.Int64
|
The storage quota type for the site
string StorageQuotaType { get; }
System.String
|
The current usage of storage for the site
long StorageUsage { get; }
System.Int64
|
The warning level for storage usage
long StorageWarningLevel { get; set; }
System.Int64
|
When the site is connected to a team channel in Microsoft Teams, gets the type of channel the site is connected to
TeamsChannelTypeValue TeamsChannelType { get; }
TeamsChannelTypeValue
|
The site's web template name
string Template { get; set; }
System.String
|
The site's title
string Title { get; set; }
System.String
|
The Url of the site
string Url { get; }
System.String
|
The number of webs in the site
int WebsCount { get; }
System.Int32
|
Updates the properties of this site collection
void Update(VanityUrlOptions vanityUrlOptions = null)
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant |
Updates the properties of this site collection
Task UpdateAsync(VanityUrlOptions vanityUrlOptions = null)
VanityUrlOptions
vanityUrlOptions
Optionally specify the custom vanity URI's used by this tenant |
Task
|