CmdID / PowerShell / Cmdlets / Add
Add-VivaModuleFeaturePolicy
Use the Add-VivaModuleFeaturePolicy cmdlet to add a new access policy for a specific feature in Viva. Exchange PowerShell reference
From the Exchange PowerShell reference 12 parameters Its page in the reference
Parameters
-FeatureIdThe FeatureId parameter specifies the feature in the Viva module that you want to add the policy for.-IsFeatureEnabledThe IsFeatureEnabled parameter specifies whether or not the feature is enabled by the policy.-ModuleIdThe ModuleId parameter specifies the Viva module that you want to add the feature policy for.-NameThe Name parameter specifies the name of the policy.-Confirm, -cfThe Confirm switch specifies whether to show or hide the confirmation prompt.-EveryoneThe Everyone switch specifies that the policy applies to all users in the organization.-GroupIdsThe GroupIds parameter specifies the email addresses or security group object IDs (GUIDs) of groups that the updated policy applies to.-IsUserControlEnabledThe IsUserControlEnabled parameter specifies whether user control is enabled by the policy.-IsUserOptedInByDefaultThe IsUserOptedInByDefault parameter specifies whether users are opted in by default by the policy.-ResultSizeThis parameter is reserved for internal Microsoft use.-UserIdsThe UserIds parameter specifies the user principal names (UPNs) of the users that the policy applies to.-WhatIf, -wiThe WhatIf switch shows what the command does without making any changes.