mirror of
https://github.com/KelvinTegelaar/CIPP.git
synced 2026-04-25 16:26:09 +03:00
[GH-ISSUE #2119] [Feature Request]: Allow adding devices to groups #1083
Labels
No labels
API
Feature
NotABug
NotABug
Planned
Sponsor Priority
Sponsor Priority
bug
documentation
duplicate
enhancement
needs more info
no-activity
no-priority
not-assigned
pull-request
react-conversion
react-conversion
roadmap
security
stale
unconfirmed-by-user
unconfirmed-by-user
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/CIPP#1083
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
@KelvinTegelaar commented on GitHub (Feb 9, 2024):
Only sponsors can create frs.