< Back

Grant-CsUserPolicyPackage

Sat Jan 18, 2020 4:17 pm

NAME Grant-CsUserPolicyPackage



SYNOPSIS

This cmdlet supports applying a policy package to users in a tenant.





SYNTAX

Grant-CsUserPolicyPackage [-Identity] <String[]> [-PackageName] <String> [<CommonParameters>]





DESCRIPTION

This cmdlet supports applying a policy package to users in a tenant. Provide one or more user identities to assign

the package with all the associated policies. The available policy packages and their definitions can be found by

running Get-CsPolicyPackage. The recommended policy package for each user can be found by running

Get-CsUserPolicyPackageRecommendation. For more information on policy packages, please review

https://docs.microsoft.com/en-us/Micros ... y-packages





PARAMETERS

-Identity <String[]>

A list of one or more users in the tenant. Note that we recommend applying a policy package to no more than 15

users at once.



Required? true

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-PackageName <String>

The name of a specific policy package to apply. All possible policy package names can be found by running

Get-CsPolicyPackage.



Required? true

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES









-------------------------- Example 1 --------------------------



PS C:\\> Grant-CsUserPolicyPackage -Identity 1bc0b35f-095a-4a37-a24c-c4b6049816ab,johndoe@example.com -PackageName

Education_PrimaryStudent



Applies the Education_PrimaryStudent policy package to two users in the tenant.



RELATED LINKS

Get-CsPolicyPackage

Get-CsUserPolicyPackageRecommendation

Get-CsUserPolicyPackage