|
| 1 | +--- |
| 2 | +external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml |
| 3 | +Module Name: MicrosoftTeams |
| 4 | +online version: https://docs.microsoft.com/powershell/module/teams/grant-csteamsenhancedencryptionpolicy |
| 5 | +title: Grant-CsTeamsEnhancedEncryptionPolicy |
| 6 | +author: xinawang |
| 7 | +ms.author: xinawang |
| 8 | +manager: mdress |
| 9 | +schema: 2.0.0 |
| 10 | +--- |
| 11 | + |
| 12 | +# Grant-CsTeamsEnhancedEncryptionPolicy |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | +Cmdlet to assign a specific Teams enhanced encryption Policy to a user. |
| 16 | + |
| 17 | +## SYNTAX |
| 18 | + |
| 19 | +``` |
| 20 | +Grant-CsTeamsEnhancedEncryptionPolicy [-PassThru] [[-PolicyName] <Object>] [[-Identity] <Object>] [-Global] |
| 21 | + [-WhatIf] [-Confirm] [<CommonParameters>] |
| 22 | +``` |
| 23 | + |
| 24 | +## DESCRIPTION |
| 25 | +Cmdlet to assign a specific Teams enhanced encryption Policy to a user. |
| 26 | + |
| 27 | +The TeamsEnhancedEncryptionPolicy enables administrators to determine which users in your organization can use the enhanced encryption settings in Teams, setting for End-to-end encryption in ad-hoc 1-to-1 VOIP calls is the parameter supported by this policy currently. |
| 28 | + |
| 29 | +## EXAMPLES |
| 30 | + |
| 31 | +### EXAMPLE 1 |
| 32 | +```PowerShell |
| 33 | +PS C:\> Grant-CsTeamsEnhancedEncryptionPolicy -Identity '[email protected]' -PolicyName 'ContosoPartnerTeamsEnhancedEncryptionPolicy' |
| 34 | +``` |
| 35 | + |
| 36 | +The command shown in Example 1 assigns the per-user Teams enhanced encryption policy, ContosoPartnerTeamsEnhancedEncryptionPolicy, to the user with the user principal name (UPN) " [email protected]". |
| 37 | + |
| 38 | + |
| 39 | +### EXAMPLE 2 |
| 40 | +```PowerShell |
| 41 | +PS C:\> Grant-CsTeamsEnhancedEncryptionPolicy -Identity 'Ken Myer' -PolicyName $null |
| 42 | +``` |
| 43 | + |
| 44 | +In Example 2, any per-user Teams enhanced encryption policy previously assigned to the user "Ken Myer" is revoked. |
| 45 | + |
| 46 | +As a result, the user will be managed by the global Teams enhanced encryption policy. |
| 47 | + |
| 48 | + |
| 49 | +## PARAMETERS |
| 50 | + |
| 51 | +### -PassThru |
| 52 | +Enables you to pass a user object through the pipeline that represents the user being assigned the policy. By default, the Grant-CsTeamsEnhancedEncryptionPolicy cmdlet does not pass objects through the pipeline. |
| 53 | + |
| 54 | +```yaml |
| 55 | +Type: SwitchParameter |
| 56 | +Parameter Sets: (All) |
| 57 | +Aliases: |
| 58 | + |
| 59 | +Required: False |
| 60 | +Position: Named |
| 61 | +Default value: False |
| 62 | +Accept pipeline input: False |
| 63 | +Accept wildcard characters: False |
| 64 | +``` |
| 65 | +
|
| 66 | +### -PolicyName |
| 67 | +Specifies the name of the policy to be assigned. The PolicyName is the policy identity minus the policy scope ("tag:"). A policy that has an identity of "Tag:ContosoPartnerTeamsEnhancedEncryptionPolicy" has a PolicyName of "ContosoPartnerTeamsEnhancedEncryptionPolicy". If you set PolicyName to a null value, then the command will unassign any individual policy assigned to the user. For example: Grant-CsTeamsEnhancedEncryptionPolicy -Identity "Ken Myer" -PolicyName $Null. |
| 68 | +
|
| 69 | +```yaml |
| 70 | +Type: String |
| 71 | +Parameter Sets: (All) |
| 72 | +Aliases: |
| 73 | + |
| 74 | +Required: False |
| 75 | +Position: 2 |
| 76 | +Default value: None |
| 77 | +Accept pipeline input: False |
| 78 | +Accept wildcard characters: False |
| 79 | +``` |
| 80 | +
|
| 81 | +### -Identity |
| 82 | +Unique identifier assigned to the Teams enhanced encryption policy. |
| 83 | +
|
| 84 | +
|
| 85 | +```yaml |
| 86 | +Type: XdsIdentity |
| 87 | +Parameter Sets: (All) |
| 88 | +Aliases: |
| 89 | + |
| 90 | +Required: False |
| 91 | +Position: 1 |
| 92 | +Default value: None |
| 93 | +Accept pipeline input: True (ByPropertyName, ByValue) |
| 94 | +Accept wildcard characters: False |
| 95 | +``` |
| 96 | +
|
| 97 | +### -Global |
| 98 | +Use this switch if you want to grant the specified policy to be the default policy for all users in the tenant. |
| 99 | +
|
| 100 | +```yaml |
| 101 | +Type: SwitchParameter |
| 102 | +Parameter Sets: (All) |
| 103 | +Aliases: |
| 104 | + |
| 105 | +Required: False |
| 106 | +Position: Named |
| 107 | +Default value: False |
| 108 | +Accept pipeline input: False |
| 109 | +Accept wildcard characters: False |
| 110 | +``` |
| 111 | +
|
| 112 | +### -WhatIf |
| 113 | +Shows what would happen if the cmdlet runs. |
| 114 | +The cmdlet is not run. |
| 115 | +
|
| 116 | +```yaml |
| 117 | +Type: SwitchParameter |
| 118 | +Parameter Sets: (All) |
| 119 | +Aliases: wi |
| 120 | + |
| 121 | +Required: False |
| 122 | +Position: Named |
| 123 | +Default value: None |
| 124 | +Accept pipeline input: False |
| 125 | +Accept wildcard characters: False |
| 126 | +``` |
| 127 | +
|
| 128 | +### -Confirm |
| 129 | +Prompts you for confirmation before running the cmdlet. |
| 130 | +
|
| 131 | +```yaml |
| 132 | +Type: SwitchParameter |
| 133 | +Parameter Sets: (All) |
| 134 | +Aliases: cf |
| 135 | + |
| 136 | +Required: False |
| 137 | +Position: Named |
| 138 | +Default value: None |
| 139 | +Accept pipeline input: False |
| 140 | +Accept wildcard characters: False |
| 141 | +``` |
| 142 | +
|
| 143 | +### CommonParameters |
| 144 | +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/?LinkID=113216). |
| 145 | +
|
| 146 | +
|
| 147 | +## INPUTS |
| 148 | +
|
| 149 | +### System.Object |
| 150 | +## OUTPUTS |
| 151 | +
|
| 152 | +### System.Object |
| 153 | +## NOTES |
| 154 | +
|
| 155 | +## RELATED LINKS |
| 156 | +
|
| 157 | +[Get-CsTeamsEnhancedEncryptionPolicy](Get-CsTeamsEnhancedEncryptionPolicy.md) |
| 158 | +
|
| 159 | +[New-CsTeamsEnhancedEncryptionPolicy](New-CsTeamsEnhancedEncryptionPolicy.md) |
| 160 | +
|
| 161 | +[Set-CsTeamsEnhancedEncryptionPolicy](Set-CsTeamsEnhancedEncryptionPolicy.md) |
| 162 | +
|
| 163 | +[Remove-CsTeamsEnhancedEncryptionPolicy](Remove-CsTeamsEnhancedEncryptionPolicy.md) |
| 164 | +
|
| 165 | +
|
| 166 | +
|
0 commit comments