diff --git a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainer.md b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainer.md index 64ec797b3..ab4ea0c0c 100644 --- a/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainer.md +++ b/sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Set-SPOContainer.md @@ -30,6 +30,30 @@ Set-SPOContainer [-Identity] [-BlockDownloadPolicy ] ``` +### RestrictedAccessControl +``` +Set-SPOContainer [-Identity] [-EnableRestrictedAccessControl ] + [-RestrictedAccessControlGroups ] [-WhatIf] [-Confirm] [] +``` + +### RestrictedAccessControlGroupsToAdd +``` +Set-SPOContainer [-Identity] [-RestrictedAccessControlGroupsToAdd ] [-WhatIf] + [-Confirm] [] +``` + +### RestrictedAccessControlGroupsToRemove +``` +Set-SPOContainer [-Identity] [-RestrictedAccessControlGroupsToRemove ] [-WhatIf] + [-Confirm] [] +``` + +### ClearRestrictedAccessControl +``` +Set-SPOContainer [-Identity] [-ClearRestrictedAccessControl] [-WhatIf] [-Confirm] + [] +``` + ### ParamSet2 ``` Set-SPOContainer [-Identity] [-RemoveLabel] [-WhatIf] [-Confirm] [] @@ -68,7 +92,6 @@ For any parameters that are passed in, the `Set-SPOContainer` cmdlet sets or upd > [!IMPORTANT] > Always wait for the current principal owner transfer attempt to finish before reusing the cmdlet. Concurrent or premature reuse can lead to incomplete or invalid ownership changes. -> You must be a SharePoint Embedded Administrator to run the cmdlet. @@ -163,6 +186,24 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -ClearRestrictedAccessControl + +> Applicable: SharePoint Online + +Clears the list of groups that are given access via an access restriction policy. + +```yaml +Type: SwitchParameter +Parameter Sets: ClearRestrictedAccessControl +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -ConditionalAccessPolicy > Applicable: SharePoint Online @@ -187,15 +228,33 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -ExcludeBlockDownloadPolicyContainerOwners +### -CurrentPrincipalOwner > Applicable: SharePoint Online -Controls if container owners are excluded from block download policy. +The current principal owner of the container. ```yaml -Type: System.Boolean -Parameter Sets: BlockDownloadPolicy +Type: String +Parameter Sets: PrincipalOwnerTransfer +Aliases: + +Required: True +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -EnableRestrictedAccessControl + +> Applicable: SharePoint Online + +Allows you and other SharePoint Embedded admins restrict access to containers. + +```yaml +Type: Boolean +Parameter Sets: RestrictedAccessControl Aliases: Required: False @@ -205,18 +264,18 @@ Accept pipeline input: False Accept wildcard characters: False ``` -### -CurrentPrincipalOwner +### -ExcludeBlockDownloadPolicyContainerOwners > Applicable: SharePoint Online -The current principal owner of the container. +Specifies whether container owners are excluded from block download policy. ```yaml -Type: String -Parameter Sets: PrincipalOwnerTransfer +Type: System.Boolean +Parameter Sets: BlockDownloadPolicy Aliases: -Required: True +Required: False Position: Named Default value: None Accept pipeline input: False @@ -354,6 +413,60 @@ Accept pipeline input: False Accept wildcard characters: False ``` +### -RestrictedAccessControlGroups + +> Applicable: SharePoint Online + +Specifies the group IDs that have access under an access restriction policy. + +```yaml +Type: Guid[] +Parameter Sets: RestrictedAccessControl +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RestrictedAccessControlGroupsToAdd + +> Applicable: SharePoint Online + +Specifies the group IDs to add to an access restriction policy to grant access. + +```yaml +Type: Guid[] +Parameter Sets: RestrictedAccessControlGroupsToAdd +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -RestrictedAccessControlGroupsToRemove + +> Applicable: SharePoint Online + +Specifies the group IDs to remove from an access restriction policy to revoke access. + +```yaml +Type: Guid[] +Parameter Sets: RestrictedAccessControlGroupsToRemove +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + ### -SensitivityLabel > Applicable: SharePoint Online