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