File tree Expand file tree Collapse file tree 5 files changed +17
-4
lines changed
Identity/Administration/Users Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,8 @@ function Get-CIPPAlertNewAppApproval {
99 [Parameter (Mandatory = $false )]
1010 [Alias (' input' )]
1111 $InputValue ,
12- $TenantFilter
12+ $TenantFilter ,
13+ $Headers
1314 )
1415 try {
1516 $Approvals = New-GraphGetRequest - Uri " https://graph.microsoft.com/v1.0/identityGovernance/appConsent/appConsentRequests?`$ filter=userConsentRequests/any (u:u/status eq 'InProgress')" - tenantid $TenantFilter
Original file line number Diff line number Diff line change @@ -13,6 +13,12 @@ function Push-ExecScheduledCommand {
1313 $Tenant = $Item.Parameters.TenantFilter ?? $Item.TaskInfo.Tenant
1414 $TenantInfo = Get-Tenants - TenantFilter $Tenant
1515
16+ $null = Update-AzDataTableEntity - Force @Table - Entity @ {
17+ PartitionKey = $task.PartitionKey
18+ RowKey = $task.RowKey
19+ TaskState = ' Running'
20+ }
21+
1622 $Function = Get-Command - Name $Item.Command
1723 if ($null -eq $Function ) {
1824 $Results = " Task Failed: The command $ ( $Item.Command ) does not exist."
@@ -23,6 +29,7 @@ function Push-ExecScheduledCommand {
2329 Results = " $Results "
2430 TaskState = $State
2531 }
32+
2633 Write-LogMessage - API ' Scheduler_UserTasks' - tenant $Tenant - tenantid $TenantInfo.customerId - message " Failed to execute task $ ( $task.Name ) : The command $ ( $Item.Command ) does not exist." - sev Error
2734 return
2835 }
Original file line number Diff line number Diff line change @@ -72,7 +72,12 @@ function Invoke-AddUserBulk {
7272 $LicenseSkus = $AssignedLicenses.value ?? $AssignedLicenses | Where-Object { $_ -match $GuidPattern }
7373 if (($LicenseSkus | Measure-Object ).Count -gt 0 ) {
7474 Write-Information " - Assigned licenses set to $ ( ($AssignedLicenses.label ?? $AssignedLicenses ) -join ' , ' ) "
75- $UserBody.assignedLicenses = @ ($LicenseSkus )
75+ $Licenses = foreach ($Sku in $LicenseSkus ) {
76+ [PSCustomObject ]@ {
77+ skuId = $Sku
78+ }
79+ }
80+ $UserBody.assignedLicenses = @ ($Licenses )
7681 }
7782 }
7883 }
Original file line number Diff line number Diff line change @@ -107,7 +107,7 @@ function Invoke-ExecCommunityRepo {
107107 ' UploadTemplate' {
108108 $GUID = $Request.Body.GUID
109109 $TemplateTable = Get-CIPPTable - TableName templates
110- $TemplateEntity = Get-CIPPAzDataTableEntity @TemplateTable - Filter " RowKey eq '$ ( $GUID ) '"
110+ $TemplateEntity = Get-CIPPAzDataTableEntity @TemplateTable - Filter " RowKey eq '$ ( $GUID ) '" | Select-Object - ExcludeProperty ETag , Timestamp
111111 $Branch = $RepoEntity.UploadBranch ?? $RepoEntity.DefaultBranch
112112 if ($TemplateEntity ) {
113113 $Template = $TemplateEntity.JSON | ConvertFrom-Json
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ function Start-UserTasksOrchestrator {
2121 PartitionKey = $task.PartitionKey
2222 RowKey = $task.RowKey
2323 ExecutedTime = " $currentUnixTime "
24- TaskState = ' Running '
24+ TaskState = ' Planned '
2525 }
2626 $task.Parameters = $task.Parameters | ConvertFrom-Json - AsHashtable
2727 $task.AdditionalProperties = $task.AdditionalProperties | ConvertFrom-Json
You can’t perform that action at this time.
0 commit comments