Skip to content

Commit

Permalink
Merge pull request #160 from almenscorner/dev
Browse files Browse the repository at this point in the history
Global App Protection
  • Loading branch information
almenscorner authored Jan 25, 2024
2 parents 2498014 + 7c88fd1 commit 77b4ced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = IntuneCD
version = 2.0.7
version = 2.0.8
author = Tobias Almén
author_email = [email protected]
description = Tool to backup and update configurations in Intune
Expand Down
5 changes: 4 additions & 1 deletion src/IntuneCD/backup/Intune/backup_AppProtection.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ def savebackup(path, output, exclude, token, prefix, append_id):

results["config_count"] += 1

if "assignments" not in exclude:
if (
"assignments" not in exclude
and profile["@odata.type"] != "#microsoft.graph.defaultManagedAppProtection"
):
assignments = get_object_assignment(profile["id"], assignment_responses)
if assignments:
profile["assignments"] = assignments
Expand Down

0 comments on commit 77b4ced

Please sign in to comment.