Skip to content

Commit

Permalink
Merge pull request #3857 from JonasCassier/Fix/Issue3856
Browse files Browse the repository at this point in the history
SPOSharingSettings: Fix Issue #3856
  • Loading branch information
NikCharlebois authored Nov 1, 2023
2 parents 4b425f4 + 0b57622 commit 9a88f29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* AADRoleEligibilityScheduleRequest
* Fixes how the Get method retrieves existing instances for Groups.
FIXES [#3787](https://github.com/microsoft/Microsoft365DSC/issues/3787)
* SPOSharingSettings
* Fixes parameter validation of ExternalUserExpireInDays and ExternalUserExpirationRequired.
FIXES [#3856](https://github.com/microsoft/Microsoft365DSC/issues/3856)

# 1.23.1025.1

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,9 @@ function Set-TargetResource
Write-Warning -Message 'The sharing capabilities for the tenant are not configured to be ExternalUserAndGuestSharing for that the RequireAnonymousLinksExpireInDays property cannot be configured'
$CurrentParameters.Remove('RequireAnonymousLinksExpireInDays') | Out-Null
}
if ($SharingCapability -ne 'ExternalUserExpirationRequired')
if ($ExternalUserExpireInDays -and $ExternalUserExpirationRequired -eq $false)
{
Write-Warning -Message 'The sharing capabilities for the tenant are not configured to be ExternalUserExpirationRequired for that the ExternalUserExpireInDays property cannot be configured'
Write-Warning -Message 'ExternalUserExpirationRequired is set to be false. For that the ExternalUserExpireInDays property cannot be configured'
$CurrentParameters.Remove('ExternalUserExpireInDays') | Out-Null
}
if ($RequireAcceptingAccountMatchInvitedAccount -eq $false)
Expand Down

0 comments on commit 9a88f29

Please sign in to comment.