You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
17
17
18
-
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature in Viva. The attributes of the policy are defined using the cmdlet parameters. Policies are used to restrict or grant access to the specified feature for specific users, groups, or the entire tenant. Note that:
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
19
20
-
- You can assign up to 10 policies per feature. An additional one policy per feature can be assigned to the entire tenant.
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.
20
+
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature or a category in Viva. The attributes of the policy are defined using the cmdlet parameters. Policies are used to restrict or grant access to the specified feature or category for specific users, groups, or the entire tenant.
21
+
22
+
- You can assign up to 10 policies per feature/category. An additional one policy per feature/category can be assigned to the entire tenant.
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
+
- If a category is disabled by category policies, all features under the category are disabled regardless of the policies set at the feature level.
25
+
- You can only update user controls at the feature policy level, not the category policy level.
22
26
23
27
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.
24
28
25
29
For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://learn.microsoft.com/powershell/exchange/exchange-cmdlet-syntax).
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature in Viva.
59
+
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature or category in Viva.
60
+
61
+
Support for categories is available in version 3.5.0-Preview2 or later of the module.
43
62
44
63
You need to use the Connect-ExchangeOnline cmdlet to authenticate.
45
64
46
65
This cmdlet requires the .NET Framework 4.7.2 or later.
47
66
48
-
Currently, you need to be a member of the Global administrators role to run this cmdlet.
67
+
Currently, you need to be a member of the Global Administrators role or the roles that have been assigned at the feature level to run this cmdlet.
68
+
69
+
To learn more about assigned roles at the feature level, see [Features Available for Feature Access Management](https://learn.microsoft.com/viva/feature-access-management#features-available-for-feature-access-management).
49
70
50
71
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).
This example adds a policy for the `<cateogry_id>` category in Viva. The policy disables the category (effectively all features under the category) for all users in the organization.
This example adds a policy for the `<cateogry_id>` category in Viva. The policy disables the category (effectively all features under the category) for all users in the specified groups.
This example adds a policy for the `<cateogry_id>` category in Viva. The policy disables the category (effectively all features under the category) for the specified users.
This example adds a policy for the `<cateogry_id>` category in Viva. The policy disables the category (effectively all features under the category) for the specified users and group members.
This example adds a policy for the `<cateogry_id>` category in Viva where the policy name is with spaces. The policy disables the category (effectively all features under the category) for all users in the organization.
137
+
82
138
## PARAMETERS
83
139
140
+
### -CategoryId
141
+
This parameter is available in version 3.5.0-Preview2 or later of the module.
142
+
143
+
**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.
144
+
145
+
The CategoryId parameter specifies the Viva category that you want to add the policy for.
146
+
147
+
```yaml
148
+
Type: String
149
+
Parameter Sets: CategoryPolicy
150
+
Aliases:
151
+
Applicable: Exchange Online
152
+
153
+
Required: True
154
+
Position: Named
155
+
Default value: None
156
+
Accept pipeline input: False
157
+
Accept wildcard characters: False
158
+
```
159
+
84
160
### -FeatureId
85
161
The FeatureId parameter specifies the feature in the Viva module that you want to add the policy for.
86
162
87
163
To view details about the features in a Viva module that support feature access controls, use the Get-VivaModuleFeature cmdlet. The FeatureId value is returned in the output of the cmdlet.
88
164
89
165
```yaml
90
166
Type: String
91
-
Parameter Sets: (All)
167
+
Parameter Sets: FeaturePolicy
168
+
Aliases:
169
+
Applicable: Exchange Online
170
+
171
+
Required: True
172
+
Position: Named
173
+
Default value: None
174
+
Accept pipeline input: False
175
+
Accept wildcard characters: False
176
+
```
177
+
178
+
### -IsCategoryEnabled
179
+
This parameter is available in version 3.5.0-Preview2 or later of the module.
180
+
181
+
**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.
182
+
183
+
The IsCategoryEnabled parameter specifies whether or not the category is enabled by the policy. Valid values are:
184
+
185
+
- $true: The category is enabled by the policy.
186
+
- $false: The category is not enabled by the policy.
187
+
188
+
```yaml
189
+
Type: Boolean
190
+
Parameter Sets: CategoryPolicy
92
191
Aliases:
93
192
Applicable: Exchange Online
94
193
@@ -107,7 +206,7 @@ The IsFeatureEnabled parameter specifies whether or not the feature is enabled b
107
206
108
207
```yaml
109
208
Type: Boolean
110
-
Parameter Sets: (All)
209
+
Parameter Sets: FeaturePolicy
111
210
Aliases:
112
211
Applicable: Exchange Online
113
212
@@ -123,7 +222,7 @@ The ModuleId parameter specifies the Viva module that you want to add the featur
**Note**: This parameter is available in version 3.3.0 or later of the module. If the feature supports user controls for opting out, make sure you set the *IsUserControlEnabled* parameter when you create the policy. Otherwise, user controls for the policy use the default state for the feature.
314
+
This parameter is available in version 3.3.0 or later of the module.
216
315
217
316
The IsUserControlEnabled parameter specifies whether user control is enabled by the policy. Valid values are:
218
317
@@ -223,7 +322,7 @@ Only features that allow admins to enable and disable user controls by policy ca
This cmdlet is available only in the Exchange Online PowerShell module v3.5.0 or later. For more information, see [About the Exchange Online PowerShell module](https://aka.ms/exov3-module).
17
+
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 Get-VivaFeatureCategory cmdlet to view all categories in Viva that support feature access controls. This cmdlet provides details about the categories, including the category identifiers, descriptions, and Viva module features that belong to the category. A category contains a group of features in the same or different Viva module.
21
+
22
+
For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://learn.microsoft.com/powershell/exchange/exchange-cmdlet-syntax).
23
+
24
+
## SYNTAX
25
+
26
+
```
27
+
Get-VivaFeatureCategory
28
+
[-ResultSize <Unlimited>]
29
+
[<CommonParameters>]
30
+
```
31
+
32
+
## DESCRIPTION
33
+
Use the Get-VivaFeatureCategory cmdlet to view the categories in Viva that support feature access controls.
34
+
35
+
You need to use the Connect-ExchangeOnline cmdlet to authenticate.
36
+
37
+
This cmdlet requires the .NET Framework 4.7.2 or later.
38
+
39
+
## EXAMPLES
40
+
41
+
### Example 1
42
+
```powershell
43
+
Get-VivaFeatureCategory
44
+
```
45
+
46
+
This example returns all categories in Viva that support feature access controls.
47
+
48
+
## PARAMETERS
49
+
50
+
### -ResultSize
51
+
This parameter is reserved for internal Microsoft use.
52
+
53
+
```yaml
54
+
Type: Unlimited
55
+
Parameter Sets: (All)
56
+
Aliases:
57
+
58
+
Required: False
59
+
Position: Named
60
+
Default value: None
61
+
Accept pipeline input: False
62
+
Accept wildcard characters: False
63
+
```
64
+
65
+
### CommonParameters
66
+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/p/?LinkID=113216).
0 commit comments