Thursday, January 3, 2013

SharePoint2013 Enable Licensing and office webapps editing for all SAML custom claims provider users

Scenario: How to enable licensing\ Office webapps edit for all SAML custom claims provider users

Solution: In SharePoint2013 management shell execute below commands
1) $allCustomProviderUsers = New-SPClaimsPrincipal -EncodedClaim "c:0!.s|trusted%3aCustomClaimsProvidername"

Get-SPWebApplication | select Url | %{New-SPUserLicenseMapping -Claim $allCustomProviderUsers –License "Enterprise" -WebApplication $_.Url | Add-SPUserLicenseMapping}
Enable-SPUserLicensing

2)
$allCustomProvideraccount = New-SPClaimsPrincipal -EncodedClaim "c:0!.s|trusted%3aCustomClaimsProvidername"

Get-SPWebApplication | select Url | %{ New-SPUserLicenseMapping -Claim $allCustomProvideraccount

-License "OfficeWebAppsEdit" -WebApplication $_.Url | Add-SPUserLicenseMapping}

 Replace "CustomClaimsProvidername" with your custom claims provider name in your environment.

 

No comments:

Post a Comment