Scenario/Problem: You need to create a new license mapping to add to user licensing enforcement.
Solution: Use the New-SPUserLicenseMapping
cmdlet with either the SecurityGroup
, Role
, ClaimType
, or Claim
parameters.
Before you can add a license mapping to user license enforcement, you need to create a new license mapping object. Use the New-SPUserLicenseMapping
cmdlet to create a new variable object, as shown in Listing 11.5.
$licenseMapping = New-SPUserLicenseMapping -SecurityGroup "Enterprise Admins" -License Enterprise
You can create a mapping against a security group, a forms-based role, a claim type (with the original issuer specified), or a claim itself using the respective parameters. Reviewing the object displays the various properties of the mapping, as shown in Figure 11.3.
3.141.200.180