File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Entrypoints/HTTP Functions/Endpoint/Applications Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ Function Invoke-AddChocoApp {
1616
1717 $ChocoApp = $Request.Body
1818 $intuneBody = Get-Content ' AddChocoApp\Choco.app.json' | ConvertFrom-Json
19- $AssignTo = $Request.Body.AssignTo
19+ $AssignTo = $Request.Body.AssignTo -eq ' customGroup ' ? $Request .Body.CustomGroup : $Request .Body.AssignTo
2020 $intuneBody.description = $ChocoApp.description
2121 $intuneBody.displayName = $ChocoApp.ApplicationName
2222 $intuneBody.installExperience.runAsAccount = if ($ChocoApp.InstallAsSystem ) { ' system' } else { ' user' }
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ function Set-CIPPAssignedApplication {
99 $APIName = ' Assign Application' ,
1010 $Headers
1111 )
12-
12+ Write-Host " GroupName: $GroupName Intent: $Intent AppType: $AppType ApplicationId: $ApplicationId TenantFilter: $TenantFilter APIName: $APIName "
1313 try {
1414 $MobileAppAssignment = switch ($GroupName ) {
1515 ' AllUsers' {
You can’t perform that action at this time.
0 commit comments