Skip to content

[AutoPublish] main to live - 04/23 10:32 PDT | 04/23 23:02 IST #12697

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 50 commits into from
Apr 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
ba3bc0c
Update Get-VivaModuleFeaturePolicy.md
knovichenko Apr 3, 2025
5be7752
Update Update-VivaModuleFeaturePolicy.md
knovichenko Apr 3, 2025
53b045d
Update Add-VivaModuleFeaturePolicy.md
knovichenko Apr 3, 2025
b005adf
Update Remove-VivaModuleFeaturePolicy.md
knovichenko Apr 3, 2025
4e5bab6
Delete exchange/exchange-ps/exchange/Get-VivaFeatureCategory.md
knovichenko Apr 3, 2025
cfc54ee
Merge branch 'Viva-chrisda' into patch-3
chrisda Apr 3, 2025
828be3f
Merge pull request #12651 from knovichenko/patch-3
chrisda Apr 3, 2025
a134ac8
Merge branch 'Viva-chrisda' into patch-4
chrisda Apr 3, 2025
d84c755
Merge pull request #12652 from knovichenko/patch-4
chrisda Apr 3, 2025
b9a4e1a
Merge branch 'Viva-chrisda' into patch-5
chrisda Apr 3, 2025
8870f9e
Merge pull request #12653 from knovichenko/patch-5
chrisda Apr 3, 2025
c64a9a1
Merge branch 'Viva-chrisda' into patch-6
chrisda Apr 3, 2025
d00817f
Merge pull request #12654 from knovichenko/patch-6
chrisda Apr 3, 2025
5cadb88
Merge branch 'Viva-chrisda' into patch-7
chrisda Apr 3, 2025
86193ec
Merge pull request #12656 from knovichenko/patch-7
chrisda Apr 3, 2025
2c60b92
Update Add-VivaModuleFeaturePolicy.md
knovichenko Apr 3, 2025
e9849d4
Update Update-VivaModuleFeaturePolicy.md
knovichenko Apr 3, 2025
b3fb754
Merge pull request #12657 from knovichenko/patch-8
chrisda Apr 3, 2025
4e7a0cb
Add IsUserOptedInByDefault parameter
chrisda Apr 3, 2025
757c0d1
Merge branch 'Viva-chrisda' into patch-9
chrisda Apr 3, 2025
0cd5a2d
Merge pull request #12658 from knovichenko/patch-9
chrisda Apr 3, 2025
aca3ca7
Parameter sets update
chrisda Apr 3, 2025
4f6b3c8
Merge branch 'Viva-chrisda' of https://github.com/MicrosoftDocs/offic…
chrisda Apr 3, 2025
b2a31e0
Update Update-VivaModuleFeaturePolicy.md
chrisda Apr 3, 2025
ebf8063
Syntax blocks
chrisda Apr 3, 2025
c2451b1
Update Add-VivaModuleFeaturePolicy.md
chrisda Apr 3, 2025
94d9eda
Update .openpublishing.redirection.json
chrisda Apr 3, 2025
1a791ac
Update New-CsTeamsCallingPolicy.md
blackquack Apr 3, 2025
d12eefb
Update Set-CsTeamsCallingPolicy.md
blackquack Apr 3, 2025
91e55fb
Update Update-VivaModuleFeaturePolicy.md
knovichenko Apr 4, 2025
5300f97
Update Add-VivaModuleFeaturePolicy.md
knovichenko Apr 4, 2025
6ce944f
Clarify optional parameter usage in documentation
chrisda Apr 4, 2025
f15077d
Merge pull request #12664 from knovichenko/patch-10
chrisda Apr 4, 2025
72cab34
Merge branch 'main' into Viva-chrisda
chrisda Apr 4, 2025
3ff1ea4
Clarify IsUserOptedInByDefault parameter description
chrisda Apr 7, 2025
76d5349
Merge branch 'Viva-chrisda' into patch-11
chrisda Apr 7, 2025
af3aa07
Merge pull request #12665 from knovichenko/patch-11
chrisda Apr 7, 2025
6519463
Update Update-VivaModuleFeaturePolicy.md
chrisda Apr 7, 2025
26ee070
Update Update-VivaModuleFeaturePolicy.md
knovichenko Apr 9, 2025
6003db9
Merge pull request #12674 from knovichenko/patch-13
chrisda Apr 9, 2025
43dc367
Merge branch 'main' into main
blackquack Apr 18, 2025
00e8272
Update New-CsTeamsEventsPolicy.md
SarinaMS Apr 22, 2025
3fd420b
Update Set-CsTeamsEventsPolicy.md
SarinaMS Apr 22, 2025
0d2e8e3
Update New-CsTeamsEventsPolicy.md
SarinaMS Apr 22, 2025
7069680
Merge branch 'main' into patch-4
padmagit77 Apr 23, 2025
7061931
Merge pull request #12694 from SarinaMS/patch-4
padmagit77 Apr 23, 2025
276ef82
Merge branch 'main' into main
padmagit77 Apr 23, 2025
15c048c
Merge pull request #12660 from blackquack/main
padmagit77 Apr 23, 2025
c94db82
Merge branch 'main' into Viva-chrisda
chrisda Apr 23, 2025
fa4e51f
Merge pull request #12696 from MicrosoftDocs/Viva-chrisda
chrisda Apr 23, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .openpublishing.redirection.json
Original file line number Diff line number Diff line change
Expand Up @@ -7143,6 +7143,11 @@
"redirect_url": "/powershell/module/exchange/get-exosecopsoverriderule",
"redirect_document_id": false
},
{
"source_path": "exchange/virtual-folder/exchange/Get-VivaFeatureCategory.md",
"redirect_url": "/viva/feature-access-management",
"redirect_document_id": false
},
{
"source_path": "skype/virtual-folder/skype/Disable-CsOnlineSipDomain.md",
"redirect_url": "/powershell/module/teams/Disable-CsOnlineSipDomain",
Expand Down
137 changes: 36 additions & 101 deletions exchange/exchange-ps/exchange/Add-VivaModuleFeaturePolicy.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,51 +15,32 @@ ms.reviewer:
## SYNOPSIS
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).

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

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.

- You can assign up to 10 policies per feature/category. An additional one policy per feature/category can be assigned to the entire tenant.
- 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.
- If a category is disabled by category policies, all features under the category are disabled regardless of the policies set at the feature level.
- You can only update user controls at the feature policy level, not the category policy level.
- You can assign up to 10 policies per feature. An additional one policy per feature can be assigned to the entire tenant.
- 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.
- 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.

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.

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

## SYNTAX

### FeaturePolicy
```
Add-VivaModuleFeaturePolicy -FeatureId <String> -IsFeatureEnabled <Boolean> -ModuleId <String> -Name <String>
[-Confirm]
[-Everyone]
[-GroupIds <String[]>]
[-IsUserControlEnabled <Boolean>]
[-ResultSize <Unlimited>]
[-UserIds <String[]>]
[-WhatIf]
[<CommonParameters>]
```

### CategoryPolicy
```
Add-VivaModuleFeaturePolicy -CategoryId <String> -IsCategoryEnabled <Boolean> -Name <String>
[-Confirm]
[-Everyone]
[-GroupIds <String[]>]
[-IsUserOptedInByDefault <Boolean>]
[-ResultSize <Unlimited>]
[-UserIds <String[]>]
[-WhatIf]
[<CommonParameters>]
```

## DESCRIPTION
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature or category in Viva.

Support for categories is available in version 3.5.0-Preview2 or later of the module.
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature in Viva.

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

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

### Example 5
```powershell
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name DisableCategoryForAll -IsCategoryEnabled $false -Everyone
```

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.

### Example 6
```powershell
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name MultipleGroups -IsCategoryEnabled $false -GroupIds [email protected],[email protected],57680382-61a5-4378-85ad-f72095d4e9c3
```

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.

### Example 7
```powershell
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name MultipleUsers -IsCategoryEnabled $false -UserIds [email protected],[email protected]
Add-VivaModuleFeaturePolicy -ModuleId PeopleSkills -FeatureId ShowAISkills -Name SoftDisableShowAISkillsPolicy -IsFeatureEnabled $true -IsUserControlEnabled $true -IsUserOptedInByDefault $false -UserIds [email protected],[email protected]
```

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.

### Example 8
```powershell
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name UsersAndGroups -IsCategoryEnabled $false -GroupIds [email protected],[email protected],57680382-61a5-4378-85ad-f72095d4e9c3 -UserIds [email protected],[email protected]
```

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.

### Example 9
```powershell
Add-VivaModuleFeaturePolicy -CategoryId <category_id> -Name "Disable Category For All" -IsCategoryEnabled $false -Everyone
```

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.
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).

## PARAMETERS

### -CategoryId
This parameter is available in version 3.5.0-Preview2 or later of the module.

**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.

The CategoryId parameter specifies the Viva category that you want to add the policy for.

```yaml
Type: String
Parameter Sets: CategoryPolicy
Aliases:
Applicable: Exchange Online

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -FeatureId
The FeatureId parameter specifies the feature in the Viva module that you want to add the policy for.

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.

```yaml
Type: String
Parameter Sets: FeaturePolicy
Aliases:
Applicable: Exchange Online

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IsCategoryEnabled
This parameter is available in version 3.5.0-Preview2 or later of the module.

**Note**: Currently, no categories are available in Viva. We'll update the documentation when categories are available.

The IsCategoryEnabled parameter specifies whether or not the category is enabled by the policy. Valid values are:

- $true: The category is enabled by the policy.
- $false: The category is not enabled by the policy.

```yaml
Type: Boolean
Parameter Sets: CategoryPolicy
Parameter Sets: (All)
Aliases:
Applicable: Exchange Online

Expand All @@ -210,7 +120,7 @@ The IsFeatureEnabled parameter specifies whether or not the feature is enabled b

```yaml
Type: Boolean
Parameter Sets: FeaturePolicy
Parameter Sets: (All)
Aliases:
Applicable: Exchange Online

Expand All @@ -226,7 +136,7 @@ The ModuleId parameter specifies the Viva module that you want to add the featur

```yaml
Type: String
Parameter Sets: FeaturePolicy
Parameter Sets: (All)
Aliases:
Applicable: Exchange Online

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

```yaml
Type: Boolean
Parameter Sets: FeaturePolicy
Parameter Sets: (All)
Aliases:
Applicable: Exchange Online

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```

### -IsUserOptedInByDefault
This parameter is available in version 3.8.0-Preview2 or later of the module.

The IsUserOptedInByDefault parameter specifies whether users are opted in by default by the policy. Valid values are:

- $true: By default, users are opted in by the policy if the user hasn't set a preference.
- $false: By default, users are opted out by the policy if the user hasn't set a preference.

This parameter is optional and can be used to override the default user opt-in value set in the feature metadata.

This parameter can be set only when the IsUserControlEnabled parameter is set to $true.

```yaml
Type: Boolean
Parameter Sets: (All)
Aliases:
Applicable: Exchange Online

Expand Down
79 changes: 0 additions & 79 deletions exchange/exchange-ps/exchange/Get-VivaFeatureCategory.md

This file was deleted.

Loading