[GH-ISSUE #2119] [Feature Request]: Allow adding devices to groups #1083

Closed
opened 2026-03-02 13:41:26 +03:00 by kerem · 1 comment
Owner

Originally created by @SGeeves on GitHub (Feb 8, 2024).
Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2119

Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole.

With Intune device management (Endpoint manager etc) where devices are assigned certain policies, profiles and applications. This is typically completed via groups. (i.e. the app or config profile is assigned to the group).
Adding the device to the group would then allow these devices to get their configurations.

Using the below powershell command I utilise the 'IsManaged' part of the object to ensure that it is a managed and enrolled device into Intune.

.

PowerShell commands you would normally use to achieve above request

$Device = get-mgdevice | where {($.displayname -eq "COMPUTERNAME") -and ($.ismanaged -eq "True")}
$Group = get-mggroup | where -Property Displayname -eq "GROUPNAME"
$CR_AddMember = New-MgGroupMember -GroupId $group.id -DirectoryObjectId $device.id

Originally created by @SGeeves on GitHub (Feb 8, 2024). Original GitHub issue: https://github.com/KelvinTegelaar/CIPP/issues/2119 ### Description of the new feature - must be an in-depth explanation of the feature you want, reasoning why, and the added benefits for MSPs as a whole. With Intune device management (Endpoint manager etc) where devices are assigned certain policies, profiles and applications. This is typically completed via groups. (i.e. the app or config profile is assigned to the group). Adding the device to the group would then allow these devices to get their configurations. Using the below powershell command I utilise the 'IsManaged' part of the object to ensure that it is a managed and enrolled device into Intune. . ### PowerShell commands you would normally use to achieve above request $Device = get-mgdevice | where {($_.displayname -eq "COMPUTERNAME") -and ($_.ismanaged -eq "True")} $Group = get-mggroup | where -Property Displayname -eq "GROUPNAME" $CR_AddMember = New-MgGroupMember -GroupId $group.id -DirectoryObjectId $device.id
kerem 2026-03-02 13:41:26 +03:00
Author
Owner

@KelvinTegelaar commented on GitHub (Feb 9, 2024):

Only sponsors can create frs.

<!-- gh-comment-id:1935200164 --> @KelvinTegelaar commented on GitHub (Feb 9, 2024): Only sponsors can create frs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/CIPP#1083
No description provided.