With the new soft-deleted groups functionality we can now see group name of a deleted group for a limited time and its status Soft-Deleted under Intune App Assignments. Currently Get-IntuneWin32AppAssignment just throws a warning WARNING: Request to https://graph.microsoft.com/v1.0/groups/<guid> failed with HTTP Status NotFound and description: when it encounters an assignment to a deleted group, so it would be great to have this implemented.
For the status, I'm not sure how Intune determines that, cause Graph doesn't return group status as such when querying app assignments. However, I noticed that active groups' assignment ids have a format guid_0_0, whereas deleted groups' assignment ids are guid_1_1, so maybe this is it. Oh, also the latter have empty settings property.
For the name of a deleted group you just query /directory/deletedItems/{object-id} as per this MS article
With the new soft-deleted groups functionality we can now see group name of a deleted group for a limited time and its status Soft-Deleted under Intune App Assignments. Currently
Get-IntuneWin32AppAssignmentjust throws a warningWARNING: Request to https://graph.microsoft.com/v1.0/groups/<guid> failed with HTTP Status NotFound and description:when it encounters an assignment to a deleted group, so it would be great to have this implemented.For the status, I'm not sure how Intune determines that, cause Graph doesn't return group status as such when querying app assignments. However, I noticed that active groups' assignment ids have a format
guid_0_0, whereas deleted groups' assignment ids areguid_1_1, so maybe this is it. Oh, also the latter have emptysettingsproperty.For the name of a deleted group you just query
/directory/deletedItems/{object-id}as per this MS article