Skip to content

Commit

Permalink
Update MSFT_SPOSharingSettings.psm1
Browse files Browse the repository at this point in the history
  • Loading branch information
NikCharlebois committed Jan 19, 2024
1 parent 195142a commit bda68c7
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,15 +193,9 @@ function Get-TargetResource
{
$DefaultLinkPermission = $SPOSharingSettings.DefaultLinkPermission
}

if ([System.String]::IsNullOrEmpty($MySiteSharingCapability))
{
$MySiteSharingCapability = $null
}
return @{
$results = @{
IsSingleInstance = 'Yes'
SharingCapability = $SPOSharingSettings.SharingCapability
MySiteSharingCapability = $MySiteSharingCapability
ShowEveryoneClaim = $SPOSharingSettings.ShowEveryoneClaim
ShowAllUsersClaim = $SPOSharingSettings.ShowAllUsersClaim
ShowEveryoneExceptExternalUsersClaim = $SPOSharingSettings.ShowEveryoneExceptExternalUsersClaim
Expand Down Expand Up @@ -233,6 +227,12 @@ function Get-TargetResource
Managedidentity = $ManagedIdentity.IsPresent
Ensure = 'Present'
}

if (-not [System.String]::IsNullOrEmpty($MySiteSharingCapability))
{
$results.Add('MySiteSharingCapability', $MySiteSharingCapability)
}
return $results
}
catch
{
Expand Down

0 comments on commit bda68c7

Please sign in to comment.