Hi, I would like assistance on solving the error: Cannot convert value (xx) to type "system.guid". Guid should contain 32 digits with 4 dashes on Powershell
Some context for what I'm trying to achieve:
I would like to restrict downloading files on specific SharePoint online sites. But this should only apply to some users. Meaning, the site owners and one more group should be able to download, while one group should not be able to download files.
The complete cmdlet is:
Set-SPOSite -Identity https://siteurl -BlockDownloadPolicy $true -ExcludeBlockDownloadPolicySiteOwners $true -ExcludedBlockDownloadGroupIds ["25"]
The first two parts above worked (when used without the third one), i.e., Set-SPOSite -Identity siteurl -BlockDownloadPolicy $true -ExcludeBlockDownloadPolicySiteOwners $true (which basically restricts downloading for everyone apart from site owners)
However, the last part: -ExcludedBlockDownloadGroupId ["25"] (To exempt one group from the download restriction) does not seem to work and brings the error mentioned above. 25 is the group ID of the group I would want exempted from the restriction, as noted on the address bar on the SPO site permissions page. To be specific, this is how the Group ID appears on the permissions page address bar: https://siteurl/_layouts/15/people.aspx?MembershipGroupId=25
I know this is probably basic, but I have tried numerous options and input methods for the group ID on the PS cmdlet.
Any assistance on this will be appreciated