Skip to content

Commit

Permalink
Merge branch 'Dev' into fix-scsecurityfilter-region-should-be-empty
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois authored Nov 1, 2023
2 parents 11ce9f3 + 9a88f29 commit d46a3da
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 @@ -8,6 +8,9 @@
* SCSecurityFilter
* Fixes an issue because Region could be empty
FIXES: [#3854](https://github.com/microsoft/Microsoft365DSC/issues/3854)
* 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 d46a3da

Please sign in to comment.