Skip to content

Commit fa4e51f

Browse files
authored
Merge pull request #12696 from MicrosoftDocs/Viva-chrisda
Viva-chrisda to Main
2 parents 15c048c + c94db82 commit fa4e51f

6 files changed

+86
-383
lines changed

.openpublishing.redirection.json

+5
Original file line numberDiff line numberDiff line change
@@ -7143,6 +7143,11 @@
71437143
"redirect_url": "/powershell/module/exchange/get-exosecopsoverriderule",
71447144
"redirect_document_id": false
71457145
},
7146+
{
7147+
"source_path": "exchange/virtual-folder/exchange/Get-VivaFeatureCategory.md",
7148+
"redirect_url": "/viva/feature-access-management",
7149+
"redirect_document_id": false
7150+
},
71467151
{
71477152
"source_path": "skype/virtual-folder/skype/Disable-CsOnlineSipDomain.md",
71487153
"redirect_url": "/powershell/module/teams/Disable-CsOnlineSipDomain",

exchange/exchange-ps/exchange/Add-VivaModuleFeaturePolicy.md

+36-101
Original file line numberDiff line numberDiff line change
@@ -15,51 +15,32 @@ 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.
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.
1919

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.
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.
2622
- 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.
2723

2824
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.
2925

3026
For information about the parameter sets in the Syntax section below, see [Exchange cmdlet syntax](https://learn.microsoft.com/powershell/exchange/exchange-cmdlet-syntax).
3127

3228
## SYNTAX
33-
34-
### FeaturePolicy
3529
```
3630
Add-VivaModuleFeaturePolicy -FeatureId <String> -IsFeatureEnabled <Boolean> -ModuleId <String> -Name <String>
3731
[-Confirm]
3832
[-Everyone]
3933
[-GroupIds <String[]>]
4034
[-IsUserControlEnabled <Boolean>]
41-
[-ResultSize <Unlimited>]
42-
[-UserIds <String[]>]
43-
[-WhatIf]
44-
[<CommonParameters>]
45-
```
46-
47-
### CategoryPolicy
48-
```
49-
Add-VivaModuleFeaturePolicy -CategoryId <String> -IsCategoryEnabled <Boolean> -Name <String>
50-
[-Confirm]
51-
[-Everyone]
52-
[-GroupIds <String[]>]
35+
[-IsUserOptedInByDefault <Boolean>]
5336
[-ResultSize <Unlimited>]
5437
[-UserIds <String[]>]
5538
[-WhatIf]
5639
[<CommonParameters>]
5740
```
5841

5942
## DESCRIPTION
60-
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature or category in Viva.
61-
62-
Support for categories is available in version 3.5.0-Preview2 or later of the module.
43+
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature in Viva.
6344

6445
You need to use the Connect-ExchangeOnline cmdlet to authenticate.
6546

@@ -106,92 +87,21 @@ This example adds a policy for the Reflection feature in Viva Insights. The poli
10687

10788
### Example 5
10889
```powershell
109-
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name DisableCategoryForAll -IsCategoryEnabled $false -Everyone
110-
```
111-
112-
This example adds a policy for the `<category_id>` category in Viva. The policy disables the category (effectively all features under the category) for all users in the organization.
113-
114-
### Example 6
115-
```powershell
116-
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name MultipleGroups -IsCategoryEnabled $false -GroupIds [email protected],[email protected],57680382-61a5-4378-85ad-f72095d4e9c3
117-
```
118-
119-
This example adds a policy for the `<category_id>` category in Viva. The policy disables the category (effectively all features under the category) for all users in the specified groups.
120-
121-
### Example 7
122-
```powershell
123-
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name MultipleUsers -IsCategoryEnabled $false -UserIds [email protected],[email protected]
90+
Add-VivaModuleFeaturePolicy -ModuleId PeopleSkills -FeatureId ShowAISkills -Name SoftDisableShowAISkillsPolicy -IsFeatureEnabled $true -IsUserControlEnabled $true -IsUserOptedInByDefault $false -UserIds [email protected],[email protected]
12491
```
12592

126-
This example adds a policy for the `<category_id>` category in Viva. The policy disables the category (effectively all features under the category) for the specified users.
127-
128-
### Example 8
129-
```powershell
130-
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name UsersAndGroups -IsCategoryEnabled $false -GroupIds [email protected],[email protected],57680382-61a5-4378-85ad-f72095d4e9c3 -UserIds [email protected],[email protected]
131-
```
132-
133-
This example adds a policy for the `<category_id>` category in Viva. The policy disables the category (effectively all features under the category) for the specified users and group members.
134-
135-
### Example 9
136-
```powershell
137-
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name "Disable Category For All" -IsCategoryEnabled $false -Everyone
138-
```
139-
140-
This example adds a policy for the `<category_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.
93+
This example adds a policy for the ShowAISkills feature in Viva Skills. The policy enables the feature for the specified users, allows user controls, and opted out users by default (Soft Disable policy).
14194

14295
## PARAMETERS
14396

144-
### -CategoryId
145-
This parameter is available in version 3.5.0-Preview2 or later of the module.
146-
147-
**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.
148-
149-
The CategoryId parameter specifies the Viva category that you want to add the policy for.
150-
151-
```yaml
152-
Type: String
153-
Parameter Sets: CategoryPolicy
154-
Aliases:
155-
Applicable: Exchange Online
156-
157-
Required: True
158-
Position: Named
159-
Default value: None
160-
Accept pipeline input: False
161-
Accept wildcard characters: False
162-
```
163-
16497
### -FeatureId
16598
The FeatureId parameter specifies the feature in the Viva module that you want to add the policy for.
16699

167100
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.
168101

169102
```yaml
170103
Type: String
171-
Parameter Sets: FeaturePolicy
172-
Aliases:
173-
Applicable: Exchange Online
174-
175-
Required: True
176-
Position: Named
177-
Default value: None
178-
Accept pipeline input: False
179-
Accept wildcard characters: False
180-
```
181-
182-
### -IsCategoryEnabled
183-
This parameter is available in version 3.5.0-Preview2 or later of the module.
184-
185-
**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.
186-
187-
The IsCategoryEnabled parameter specifies whether or not the category is enabled by the policy. Valid values are:
188-
189-
- $true: The category is enabled by the policy.
190-
- $false: The category is not enabled by the policy.
191-
192-
```yaml
193-
Type: Boolean
194-
Parameter Sets: CategoryPolicy
104+
Parameter Sets: (All)
195105
Aliases:
196106
Applicable: Exchange Online
197107

@@ -210,7 +120,7 @@ The IsFeatureEnabled parameter specifies whether or not the feature is enabled b
210120
211121
```yaml
212122
Type: Boolean
213-
Parameter Sets: FeaturePolicy
123+
Parameter Sets: (All)
214124
Aliases:
215125
Applicable: Exchange Online
216126

@@ -226,7 +136,7 @@ The ModuleId parameter specifies the Viva module that you want to add the featur
226136
227137
```yaml
228138
Type: String
229-
Parameter Sets: FeaturePolicy
139+
Parameter Sets: (All)
230140
Aliases:
231141
Applicable: Exchange Online
232142

@@ -328,7 +238,32 @@ Only features that allow admins to enable and disable user controls by policy ca
328238

329239
```yaml
330240
Type: Boolean
331-
Parameter Sets: FeaturePolicy
241+
Parameter Sets: (All)
242+
Aliases:
243+
Applicable: Exchange Online
244+
245+
Required: False
246+
Position: Named
247+
Default value: None
248+
Accept pipeline input: False
249+
Accept wildcard characters: False
250+
```
251+
252+
### -IsUserOptedInByDefault
253+
This parameter is available in version 3.8.0-Preview2 or later of the module.
254+
255+
The IsUserOptedInByDefault parameter specifies whether users are opted in by default by the policy. Valid values are:
256+
257+
- $true: By default, users are opted in by the policy if the user hasn't set a preference.
258+
- $false: By default, users are opted out by the policy if the user hasn't set a preference.
259+
260+
This parameter is optional and can be used to override the default user opt-in value set in the feature metadata.
261+
262+
This parameter can be set only when the IsUserControlEnabled parameter is set to $true.
263+
264+
```yaml
265+
Type: Boolean
266+
Parameter Sets: (All)
332267
Aliases:
333268
Applicable: Exchange Online
334269

exchange/exchange-ps/exchange/Get-VivaFeatureCategory.md

-79
This file was deleted.

0 commit comments

Comments
 (0)