Skip to content

Commit

Permalink
Merge pull request #8 from MG-Cloudflow/dev
Browse files Browse the repository at this point in the history
Bug Fix Settings Catalog Assignement
  • Loading branch information
MG-Cloudflow authored Jul 17, 2024
2 parents d0969db + b6bb55d commit 8b4de1b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ The Intune Toolkit is a PowerShell-based solution designed to simplify the manag
- **Logging:** Detailed logging for all major actions and error handling.

## Release Notes
# v0.2.0-alpha
### v0.2.1-alpha
- **Bug Fixes**
- Assignment Issue with Device confiuration poilicy (Settings Catalog)

### v0.2.0-alpha
- **Features**
- Mac OS Scripts
- App Configuration Policies
Expand All @@ -46,11 +50,7 @@ The Intune Toolkit is a PowerShell-based solution designed to simplify the manag
- Basic Version Check to latest Release Version on Github
- **Bug Fixes**
- Build in safety when no filters Exists ( Second Attempt ;-) )
# v0.1.1-alpha
=======
- **Logging:** Detailed logging for all major actions and error handling.

## Release Notes
### v0.1.1-alpha
- **Features**
- Platform scripts
Expand Down
3 changes: 3 additions & 0 deletions Scripts/AddAssignmentButton.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ $AddAssignmentButton.Add_Click({
if ($global:CurrentPolicyType -eq "mobileApps" -or $global:CurrentPolicyType -eq "mobileAppConfigurations") {
$urlGetAssignments = "https://graph.microsoft.com/beta/deviceAppManagement/$($global:CurrentPolicyType)('$($selectedPolicy.PolicyId)')/assignments"
$assignments = (Invoke-MgGraphRequest -Uri $urlGetAssignments -Method GET).value
} elseif($global:CurrentPolicyType -eq "configurationPolicies"){
$urlGetAssignments = "https://graph.microsoft.com/beta/deviceManagement/$($global:CurrentPolicyType)('$($selectedPolicy.PolicyId)')/assignments"
$assignments = (Invoke-MgGraphRequest -Uri $urlGetAssignments -Method GET).value
} else {
$urlGetAssignments = "https://graph.microsoft.com/beta/deviceManagement/$($global:CurrentPolicyType)('$($selectedPolicy.PolicyId)')?`$expand=assignments"
$assignments = (Invoke-MgGraphRequest -Uri $urlGetAssignments -Method GET).assignments
Expand Down

0 comments on commit 8b4de1b

Please sign in to comment.