Skip to content

Commit 2844d0a

Browse files
Update Update-VivaModuleFeaturePolicy.md
1 parent 0b55ee9 commit 2844d0a

File tree

1 file changed

+62
-13
lines changed

1 file changed

+62
-13
lines changed

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

Lines changed: 62 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ 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-
Use the Update-VivaModuleFeaturePolicy cmdlet to update an access policy for a feature in a Viva module. Note that:
18+
**Note**: While we are adding support for category policies in the Exchange Online PowerShell module v3.5.0-Preview1 or later, we have not yet released any categories in Viva. We will update when there are categories 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. Note that:
1921

2022
- 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.
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.
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.
2225

2326
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.
2427

@@ -28,51 +31,57 @@ For information about the parameter sets in the Syntax section below, see [Excha
2831

2932
### FeaturePolicy
3033
```
31-
Update-VivaModuleFeaturePolicy -ModuleId <String> -FeatureId <String> -PolicyId <String> [-IsFeatureEnabled <Boolean>] [-IsUserControlEnabled <Boolean>]
34+
Update-VivaModuleFeaturePolicy -FeatureId <String> -ModuleId <String> -PolicyId <String>
3235
[-Confirm]
3336
[-Everyone <Boolean>]
37+
[-IsFeatureEnabled <Boolean>]
38+
[-IsUserControlEnabled <Boolean>]
3439
[-GroupIds <String[]>]
3540
[-Name <String>]
36-
[-ProgressAction <ActionPreference>]
3741
[-ResultSize <Unlimited>]
3842
[-UserIds <String[]>]
3943
[-WhatIf]
4044
[<CommonParameters>]
4145
```
4246

4347
### CategoryPolicy
48+
**Note**: While we are adding support for category policies in the Exchange Online PowerShell module v3.5.0-Preview1 or later, we have not yet released any categories in Viva. We will update when there are categories available.
49+
4450
```
45-
Update-VivaModuleFeaturePolicy> -CategoryId <String> [-IsCategoryEnabled <Boolean>] -PolicyId <String>
51+
Update-VivaModuleFeaturePolicy> -CategoryId <String> -PolicyId <String>
4652
[-Confirm]
4753
[-Everyone <Boolean]
54+
[-IsCategoryEnabled <Boolean>]
4855
[-GroupIds <String[]>]
4956
[-Name <String>]
50-
[-ProgressAction <ActionPreference>]
5157
[-ResultSize <Unlimited>]
5258
[-UserIds <String[]>]
5359
[-WhatIf]
5460
[<CommonParameters>]
5561
```
5662

5763
## DESCRIPTION
58-
Use the Update-VivaModuleFeaturePolicy cmdlet to update an access policy for a feature in a Viva module.
64+
Use the Update-VivaModuleFeaturePolicy cmdlet to update an access policy for a feature in a Viva module or a category in Viva.
65+
66+
**Note**: While we are adding support for category policies in the Exchange Online PowerShell module v3.5.0-Preview1 or later, we have not yet released any categories in Viva. We will update when there are categories available.
5967

6068
This cmdlet updates the attributes of the policy that you specify. These attributes include:
6169

6270
- The policy name (Name parameter).
63-
- Whether or not the policy enables the feature (IsFeatureEnabled parameter).
64-
- Whether or not the policy enables user controls (IsUserControlEnabled parameter).
71+
- Whether or not the policy enables the feature (IsFeatureEnabled parameter) or the category (IsCategoryEnabled parameter).
72+
- Whether or not the policy enables user controls (IsUserControlEnabled parameter, only applicable to a feature policy).
6573
- Who the policy applies to (the UserIds and GroupIds parameters or the Everyone parameter).
6674

67-
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.
75+
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.
6876

6977
**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.
7078

7179
You need to use the Connect-ExchangeOnline cmdlet to authenticate.
7280

7381
This cmdlet requires the .NET Framework 4.7.2 or later.
7482

75-
Currently, you need to be a member of the Global administrators role to run this cmdlet.
83+
Currently, you need to be a member of the Global administrators role or the roles that have been permissioned at the feature level to run this cmdlet.
84+
To learn more about permissioned roles at the feature level, see [Features Available for Feature Access Management](https://learn.microsoft.com/en-us/viva/feature-access-management#features-available-for-feature-access-management).
7685

7786
To learn more about administrator role permissions in Microsoft Entra ID, see [Role template IDs](https://learn.microsoft.com/entra/identity/role-based-access-control/permissions-reference#role-template-ids).
7887

@@ -106,10 +115,43 @@ Update-VivaModuleFeaturePolicy -ModuleId VivaInsights -FeatureId Reflection -Pol
106115

107116
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.
108117

118+
### Example 5
119+
```powershell
120+
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -Name NewPolicyName -IsCategoryEnabled $false
121+
```
122+
123+
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).
124+
125+
### Example 6
126+
```powershell
127+
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -GroupIds [email protected],[email protected]
128+
```
129+
130+
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.
131+
132+
### Example 7
133+
```powershell
134+
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -UserIds [email protected],[email protected]
135+
```
136+
137+
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.
138+
139+
### Example 8
140+
```powershell
141+
Update-VivaModuleFeaturePolicy -CategoryId <category_id> -PolicyId 3db38dfa-02a3-4039-b33a-42b0b3da029b -Name NewPolicyName -IsCategoryEnabled $true -GroupIds [email protected] -UserIds [email protected]
142+
```
143+
144+
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.
145+
146+
109147
## PARAMETERS
110148

111149
### -CategoryId
112-
{{ Fill CategoryId Description }}
150+
**Note**: While we are adding support for category policies in the Exchange Online PowerShell module v3.5.0-Preview1 or later, we have not yet released any categories in Viva. We will update when there are categories available.
151+
152+
The CategoryId parameter specifies the category of the policy that you want to update.
153+
154+
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.
113155

114156
```yaml
115157
Type: String
@@ -243,7 +285,14 @@ Accept wildcard characters: False
243285
```
244286

245287
### -IsCategoryEnabled
246-
{{ Fill IsCategoryEnabled Description }}
288+
**Note**: While we are adding support for category policies in the Exchange Online PowerShell module v3.5.0-Preview1 or later, we have not yet released any categories in Viva. We will update when there are categories available.
289+
290+
The IsCategoryEnabled parameter specifies whether the category is enabled by the updated policy. Valid values are:
291+
292+
- $true: The category (effectively all features under the category) is enabled by the policy.
293+
- $false: The category (effectively all features under the category) is not enabled by the policy.
294+
295+
If you don't want to update whether the category is enabled by the policy, don't use this parameter.
247296

248297
```yaml
249298
Type: Boolean

0 commit comments

Comments
 (0)