Skip to content

Commit 5f7d2eb

Browse files
authored
Merge pull request #307 from KelvinTegelaar/dev
[pull] dev from KelvinTegelaar:dev
2 parents 001e9ee + 7484b9c commit 5f7d2eb

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/CIPP/Settings/Invoke-ExecTenantGroup.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function Invoke-ExecTenantGroup {
77
.FUNCTIONALITY
88
Entrypoint,AnyTenant
99
.ROLE
10-
Tenant.Config.ReadWrite
10+
TenantGroups.Config.ReadWrite
1111
#>
1212
[CmdletBinding()]
1313
param($Request, $TriggerMetadata)
@@ -57,9 +57,9 @@ function Invoke-ExecTenantGroup {
5757
}
5858
$MemberEntity = @{
5959
PartitionKey = 'Member'
60-
RowKey = '{0}-{1}' -f $groupId, $member.value
61-
GroupId = $groupId
62-
customerId = $member.value
60+
RowKey = '{0}-{1}' -f $groupId, $member.value
61+
GroupId = $groupId
62+
customerId = $member.value
6363
}
6464
Add-CIPPAzDataTableEntity @MembersTable -Entity $MemberEntity -Force
6565
$Adds.Add('Added member {0}' -f $member.label)

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Endpoint/Applications/Invoke-AddChocoApp.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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' }

Modules/CIPPCore/Public/Entrypoints/HTTP Functions/Tenant/Administration/Application Approval/Invoke-ExecAppPermissionTemplate.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ function Invoke-ExecAppPermissionTemplate {
33
.FUNCTIONALITY
44
Entrypoint,AnyTenant
55
.ROLE
6-
Tenant.Application.ReadWrite
6+
Tenant.ApplicationTemplates.ReadWrite
77
#>
88
[CmdletBinding()]
99
param($Request, $TriggerMetadata)

Modules/CIPPCore/Public/Set-CIPPAssignedApplication.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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' {

profile.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# Remove this if you are not planning on using MSI or Azure PowerShell.
1414

1515
# Import modules
16-
@('CIPPCore', 'CippExtensions', 'Az.KeyVault', 'Az.Accounts') | ForEach-Object {
16+
@('CIPPCore', 'CippExtensions', 'Az.KeyVault', 'Az.Accounts', 'AzBobbyTables') | ForEach-Object {
1717
try {
1818
$Module = $_
1919
Import-Module -Name $_ -ErrorAction Stop

0 commit comments

Comments
 (0)