Skip to content

Commit d84c755

Browse files
authored
Merge pull request #12652 from knovichenko/patch-4
Update Update-VivaModuleFeaturePolicy.md
2 parents 828be3f + a134ac8 commit d84c755

File tree

1 file changed

+5
-100
lines changed

1 file changed

+5
-100
lines changed

exchange/exchange-ps/exchange/Update-VivaModuleFeaturePolicy.md

Lines changed: 5 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,10 @@ ms.reviewer:
1515
## SYNOPSIS
1616
This cmdlet is available only in the Exchange Online PowerShell module v3.2.0 or later. For more information, see [About the Exchange Online PowerShell module](https://aka.ms/exov3-module).
1717

18-
**Note**: Support for categories is available in version 3.5.0-Preview2 or later of the module, but no categories are currently available in Viva. We'll update the documentation when categories are available.
19-
20-
Use the Update-VivaModuleFeaturePolicy cmdlet to update an access policy for a feature in a Viva module or a category in Viva.
18+
Use the Update-VivaModuleFeaturePolicy cmdlet to update an access policy for a feature in a Viva module in Viva.
2119

2220
- You can't update a policy for a particular user or group to include the entire tenant if a policy for the entire tenant already exists for the feature. Only one tenant-wide policy is supported.
23-
- Policies assigned to a specific user or group take priority over the policy assigned to the entire tenant when determining whether a feature/category is enabled. If a user has multiple policies assigned for a feature/category (directly as a user or member of a group), the most restrictive policy applies.
24-
- You can only update user controls at the feature policy level, not the category policy level.
21+
- Policies assigned to a specific user or group take priority over the policy assigned to the entire tenant when determining whether a feature is enabled. If a user has multiple policies assigned for a feature (directly as a user or member of a group), the most restrictive policy applies.
2522
- Some features only support policies that apply to the entire tenant, not specific users or groups. You can refer to supported policy scopes for a feature using the [Get-VivaModuleFeature](https://learn.microsoft.com/powershell/module/exchange/get-vivamodulefeature) cmdlet.
2623

2724
Some features include the option for user controls (user opt out). Refer to the feature documentation to see if user controls are available for the feature that you intend to set a policy for.
@@ -45,33 +42,17 @@ Update-VivaModuleFeaturePolicy -FeatureId <String> -ModuleId <String> -PolicyId
4542
[<CommonParameters>]
4643
```
4744

48-
### CategoryPolicy
49-
```
50-
Update-VivaModuleFeaturePolicy> -CategoryId <String> -PolicyId <String>
51-
[-Confirm]
52-
[-Everyone <Boolean]
53-
[-IsCategoryEnabled <Boolean>]
54-
[-GroupIds <String[]>]
55-
[-Name <String>]
56-
[-ResultSize <Unlimited>]
57-
[-UserIds <String[]>]
58-
[-WhatIf]
59-
[<CommonParameters>]
60-
```
61-
6245
## DESCRIPTION
63-
Use the Update-VivaModuleFeaturePolicy cmdlet to update an access policy for a feature in a Viva module or a category in Viva.
64-
65-
Support for categories is available in version 3.5.0-Preview2 or later of the module.
46+
Use the Update-VivaModuleFeaturePolicy cmdlet to update an access policy for a feature in a Viva module in Viva.
6647

6748
This cmdlet updates the attributes of the policy that you specify. These attributes include:
6849

6950
- The policy name (Name parameter).
70-
- Whether or not the policy enables the feature (IsFeatureEnabled parameter) or the category (IsCategoryEnabled parameter).
51+
- Whether or not the policy enables the feature (IsFeatureEnabled parameter).
7152
- Whether or not the policy enables user controls (IsUserControlEnabled parameter, only applicable to a feature policy).
7253
- Who the policy applies to (the UserIds and GroupIds parameters or the Everyone parameter).
7354

74-
You can update these attributes independently of each other. For example, if you specify the Name parameter but not the IsFeatureEnabled/IsCategoryEnabled parameter, the name of the policy is updated but whether or not the policy enables the feature/category remains unchanged.
55+
You can update these attributes independently of each other. For example, if you specify the Name parameter but not the IsFeatureEnabled parameter, the name of the policy is updated but whether or not the policy enables the feature remains unchanged.
7556

7657
**Important**: Values that you specify for the UserIds and/or GroupIds parameters or the Everyone parameter **overwrite** any existing users or groups. To preserve the existing users and groups, you need to specify those existing users or groups **and** any additional users or groups that you want to add. Not including existing users or groups in the command effectively removes those specific users or groups from the policy. For more information, see the examples.
7758

@@ -118,58 +99,8 @@ Update-VivaModuleFeaturePolicy -ModuleId VivaInsights -FeatureId Reflection -Pol
11899

119100
This example updates the name of the specified policy, makes it so the policy enables the feature, and updates who the policy applies to. The policy now applies **only** to the specified users and groups, overwriting the users and groups the policy used to apply to.
120101

121-
### Example 5
122-
```powershell
123-
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -Name NewPolicyName -IsCategoryEnabled $false
124-
```
125-
126-
This example updates the name of the specified policy and makes it so the policy does not enable the category (effectively all features under the category).
127-
128-
### Example 6
129-
```powershell
130-
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -GroupIds group1@contoso.com,group2@contoso.com,57680382-61a5-4378-85ad-f72095d4e9c3
131-
```
132-
133-
This example updates who the specified policy applies to. The policy now applies **only** to the specified groups, overwriting the users and groups the policy used to apply to.
134-
135-
### Example 7
136-
```powershell
137-
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -UserIds user1@contoso.com,user2@contoso.com
138-
```
139-
140-
This example updates who the specified policy applies to. The policy now applies **only** to the specified users, overwriting the users and groups the policy used to apply to.
141-
142-
### Example 8
143-
```powershell
144-
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -Name NewPolicyName -IsCategoryEnabled $true -GroupIds group1@contoso.com,57680382-61a5-4378-85ad-f72095d4e9c3 -UserIds user1@contoso.com
145-
```
146-
147-
This example updates the name of the specified policy, makes it so the policy enables the category (effectively all features under the category), and updates who the policy applies to. The policy now applies **only** to the specified users and groups, overwriting the users and groups the policy used to apply to.
148-
149102
## PARAMETERS
150103

151-
### -CategoryId
152-
This parameter is available in version 3.5.0-Preview2 or later of the module.
153-
154-
**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.
155-
156-
The CategoryId parameter specifies the category of the policy that you want to update.
157-
158-
To view details about the categories that support feature access controls, use the Get-FeatureCategory cmdlet. The CategoryId value is returned in the output of the cmdlet.
159-
160-
```yaml
161-
Type: String
162-
Parameter Sets: CategoryPolicy
163-
Aliases:
164-
Applicable: Exchange Online
165-
166-
Required: True
167-
Position: Named
168-
Default value: None
169-
Accept pipeline input: False
170-
Accept wildcard characters: False
171-
```
172-
173104
### -FeatureId
174105
The FeatureId parameter specifies the feature in the Viva module of the policy that you want to update.
175106

@@ -289,32 +220,6 @@ Default value: None
289220
Accept pipeline input: False
290221
Accept wildcard characters: False
291222
```
292-
293-
### -IsCategoryEnabled
294-
This parameter is available in version 3.5.0-Preview2 or later of the module.
295-
296-
**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.
297-
298-
The IsCategoryEnabled parameter specifies whether the category is enabled by the updated policy. Valid values are:
299-
300-
- $true: The category (effectively all features under the category) is enabled by the policy.
301-
- $false: The category (effectively all features under the category) is not enabled by the policy.
302-
303-
If you don't want to update whether the category is enabled by the policy, don't use this parameter.
304-
305-
```yaml
306-
Type: Boolean
307-
Parameter Sets: CategoryPolicy
308-
Aliases:
309-
Applicable: Exchange Online
310-
311-
Required: False
312-
Position: Named
313-
Default value: None
314-
Accept pipeline input: False
315-
Accept wildcard characters: False
316-
```
317-
318223
### -IsFeatureEnabled
319224
The IsFeatureEnabled parameter specifies whether the feature is enabled by the updated policy. Valid values are:
320225

0 commit comments

Comments
 (0)