Commands › Exchange Online

Get-VivaModuleFeaturePolicy

Exchange Online ExchangeOnlineManagement Get-*

2.0 or later. For more information, see About the Exchange Online PowerShell module. Use the Get-VivaModuleFeaturePolicy cmdlet to view the access policies for a specified feature in a Viva module in Viva. Policies are used to restrict or grant access to the specified feature for specific users, groups, or the entire tenant. This cmdlet provides details about the policies, including the policy's identifier, name, and creation date. The cmdlet can filter policies based on MemberIds, allowing admins to view policies specific to certain users or groups.

Quick start script

# Get-VivaModuleFeaturePolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-ExchangeOnline -CertificateThumbprint $thumb -AppId $appId -Organization $org

# 2. Run and inspect
Get-VivaModuleFeaturePolicy -FeatureId <String> -ModuleId <String> | Format-List

# 3. Export for evidence / drift tracking
Get-VivaModuleFeaturePolicy | Export-Clixml .\VivaModuleFeaturePolicy-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

FeaturePolicy

Get-VivaModuleFeaturePolicy -FeatureId <String> -ModuleId <String> [[-PolicyId] <String>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

FeaturePolicyWithMembers

Get-VivaModuleFeaturePolicy -ModuleId <String> [[-FeatureId] <String>] [[-MemberIds] <String[]>]
 [-ResultSize <Unlimited>]
 [<CommonParameters>]

Parameters (5)

ParameterTypeRequiredWhat it controls
-FeatureId String yes The FeatureId parameter specifies the feature in the Viva module that you want to view the policies for.
-ModuleId String yes The ModuleId parameter specifies the Viva module of the feature policies that you want to view.
-PolicyId String The PolicyId parameter specifies the specific policy for the feature in the Viva module that you want to view.
-MemberIds String[] **Note**: This parameter is available in module version 3.8.1-Preview1 or later.
-ResultSize UInt32] This parameter is reserved for internal Microsoft use.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.