Skip to content

Commit feaf046

Browse files
committed
fix parameters with scheduled license assignment
1 parent 4a20f2b commit feaf046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/CIPPCore/Public/New-CIPPUserTask.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ function New-CIPPUserTask {
3030
value = 'Set-CIPPUserLicense'
3131
}
3232
Parameters = [pscustomobject]@{
33-
UserId = $UserObj.id
33+
UserId = $CreationResults.Username
3434
APIName = 'Sherweb License Assignment'
35-
AddLicenses = $licenses
35+
AddLicenses = $UserObj.licenses.value
3636
}
3737
ScheduledTime = 0 #right now, which is in the next 15 minutes and should cover most cases.
3838
PostExecution = @{

0 commit comments

Comments
 (0)