Public/generated/Get-KritTcmSPOSharingSettings.ps1
|
<# ·· × × × ··· SirJ's Deaddrop ··· × × × ··· — If you found this, you were meant to — ---------------- A Seriously Kritical™ Production ---------------- [] → (¯`·.¸¸.·´¯) .·´ `·. [] → `·.______________.·´ | +------------------+ | | | Kritical™ | | | | [] [] | | | | | | | | [] [] [] | | | +------------------+ | (._.·´¯`·.¸_) Your last call. And your first move. ★ ☆ ★ +61 1300 274 655 sales at kritical dot net ----------------------------------------------------------------- .COPYRIGHT (c) 2026 Kritical Pty Ltd. All rights reserved. .AUTHOR Joshua Finley <joshua.finley@kritical.net> .COMPANY Kritical Pty Ltd | ABN 39 687 048 086 Level 4 / 60 Moorabool St Geelong VIC 3220 1300 274 655 | sales@kritical.net | https://kritical.net/ .NOTES HARD RULE 13 canonical Kritical branding — do not overlay other agent banners. Auto-generated by Generate-KritTcmFromM365DscSchema.ps1 (.1507o30+). Upstream reference: Microsoft365DSC by Microsoft (MIT). This shim provides literal search-replace equivalence — see Krit.TCM/generated/index.md. #> function Get-KritTcmSPOSharingSettings { <# .SYNOPSIS Krit.TCM shim for M365DSC resource SPOSharingSettings. .DESCRIPTION Auto-generated from M365DSC .schema.mof by scripts/m365-setup/Generate-KritTcmFromM365DscSchema.ps1 (.1507o30). Search-replace safe: callers that today invoke Get-M365DSCSPOSharingSettings -Credential $cred -TenantId $tid can rename to Get-KritTcmSPOSharingSettings -Credential $cred -TenantId $tid with ZERO other edits. Parameter shape matches the M365DSC .schema.mof exactly. Per operator direction, -PreferM365DscBehavior defaults to true. Actual Graph dispatch is delegated to Invoke-KritTcmM365DscSchemaBridge. Bridge maps resource → Graph endpoint per per-resource wave; where mapping is not yet shipped, bridge returns an object with Verdict='UNMAPPED'. .NOTES Workload: SharePoint Original mof: C:\Users\joshl\OneDrive - Kritical Pty Ltd\Github\KRTPax8ToShopifyConnector\.kritm365-mine\Microsoft365DSC\Modules\Microsoft365DSC\DSCResources\MSFT_SPOSharingSettings\MSFT_SPOSharingSettings.schema.mof Param count: 30 Generator wave: .1507o30 #> [CmdletBinding()] param( # Specifies the resource is a single instance, the value must be 'Yes' [Parameter(Mandatory)] [ValidateSet('Yes')] [string]$IsSingleInstance, # Configures sharing capability for SharePoint [ValidateSet('ExistingExternalUserSharingOnly','ExternalUserAndGuestSharing','Disabled','ExternalUserSharingOnly')] [string]$SharingCapability, # Configures sharing capability for mysite (onedrive) [ValidateSet('ExistingExternalUserSharingOnly','ExternalUserAndGuestSharing','Disabled','ExternalUserSharingOnly')] [string]$MySiteSharingCapability, # Enables the administrator to hide the Everyone claim in the People Picker. [bool]$ShowEveryoneClaim, # Enables the administrator to hide the All Users claim groups in People Picker. [bool]$ShowAllUsersClaim, # Enables the administrator to hide the Everyone except external users claim in the People Picker. [bool]$ShowEveryoneExceptExternalUsersClaim, # Creates a Shared with Everyone folder in every user's new OneDrive for Business document library. [bool]$ProvisionSharedWithEveryoneFolder, # Accelerates guest-enabled site collections as well as member-only site collections when the SignInAccelerationDomain parameter is set. [bool]$EnableGuestSignInAcceleration, # When the feature is enabled, all external sharing invitations that are sent will blind copy the e-mail messages listed in the BccExternalSharingsInvitationList. [bool]$BccExternalSharingInvitations, # Specifies a list of e-mail addresses to be BCC'd when the BCC for External Sharing feature is enabled.Multiple addresses can be specified by creating a comma separated list with no spaces. [string]$BccExternalSharingInvitationsList, # Specifies all anonymous links that have been created (or will be created) will expire after the set number of days. [int]$RequireAnonymousLinksExpireInDays, # Specifies the external sharing mode for domains. [ValidateSet('None','AllowList','BlockList')] [string]$SharingDomainRestrictionMode, # Lets administrators choose what type of link appears is selected in the 'Get a link' sharing dialog box in OneDrive for Business and SharePoint Online [ValidateSet('None','Direct','Internal','AnonymousAccess')] [string]$DefaultSharingLinkType, # Allow or deny external users re-sharing [bool]$PreventExternalUsersFromResharing, # Enables the administrator to hide the guest users claim in the People Picker. [bool]$ShowPeoplePickerSuggestionsForGuestUsers, # Configures anonymous link types for files [ValidateSet('View','Edit')] [string]$FileAnonymousLinkType, # Configures anonymous link types for folders [ValidateSet('View','Edit')] [string]$FolderAnonymousLinkType, # When this parameter is set to $true and another user re-shares a document from a user’s OneDrive for Business, the OneDrive for Business owner is notified by e-mail. [bool]$NotifyOwnersWhenItemsReshared, # Specifies the link permission on the tenant level. Valid values to set are View and Edit. A value of None will be set to Edit as its the default value. [ValidateSet('None','View','Edit')] [string]$DefaultLinkPermission, # Only accepted value is 'Present'. [ValidateSet('Present','Absent')] [string]$Ensure, # Credentials of the account to authenticate with. [string]$Credential, # Id of the Azure Active Directory application to authenticate with. [string]$ApplicationId, # Secret of the Azure Active Directory application to authenticate with. [string]$ApplicationSecret, # Name of the Azure Active Directory tenant used for authentication. Format contoso.onmicrosoft.com [string]$TenantId, # Thumbprint of the Azure Active Directory application's authentication certificate to use for authentication. [string]$CertificateThumbprint, # Username can be made up to anything but password will be used for CertificatePassword [string]$CertificatePassword, # Path to certificate used in service principal usually a PFX file. [string]$CertificatePath, # Managed ID being used for authentication. [bool]$ManagedIdentity, # Enable Guest access to a site or Onedrive to expire after [bool]$ExternalUserExpirationRequired, # Specifies Number of days for Guest Access links to expire. [int]$ExternalUserExpireInDays ) Invoke-KritTcmM365DscSchemaBridge -ResourceName 'SPOSharingSettings' -Workload 'SharePoint' -Verb 'Get' -CallerParams $PSBoundParameters } |