We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd42c9d commit 2a3c576Copy full SHA for 2a3c576
1 file changed
Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Identity/Administration/Users/Invoke-EditUser.ps1
@@ -88,8 +88,8 @@ Function Invoke-EditUser {
88
try {
89
90
if ($licenses -or $UserObj.removeLicenses) {
91
- if ($UserObj.sherwebLicense) {
92
- $License = Set-SherwebSubscription -TenantFilter $UserObj.tenantFilter -SKU $UserObj.sherwebLicense -Add 1
+ if ($UserObj.sherwebLicense.value) {
+ $License = Set-SherwebSubscription -TenantFilter $UserObj.tenantFilter -SKU $UserObj.sherwebLicense.value -Add 1
93
$null = $results.Add('Added Sherweb License, scheduling assignment')
94
$taskObject = [PSCustomObject]@{
95
TenantFilter = $UserObj.tenantFilter
0 commit comments