Home

Add group to App assignment through Graph API

%3CLINGO-SUB%20id%3D%22lingo-sub-194331%22%20slang%3D%22en-US%22%3EAdd%20group%20to%20App%20assignment%20through%20Graph%20API%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-194331%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20All%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI'm%20looking%20for%20a%20solution%20for%20the%20following%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWe%20have%20several%20Apps%20published%20in%20Intune%20which%20are%20assigned%20to%20groups.%20I%20would%20like%20to%20add%20a%20group%20to%20the%20assignment%20of%20about%205%20apps.%20To%20minimize%20the%20risk%20of%20mistakes%2C%20I%20would%20like%20to%20do%20this%20with%20Graph%20API.%20I%20took%20the%20Intune%20samples%20from%20Github%20and%20rewrote%20a%20script%20a%20little.%20But%20I%20can't%20find%20a%20way%20to%20add%20a%20group%20to%20the%20current%20assignments.%20I'm%20only%20able%20to%20overwrite%20the%20assignment.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20added%20a%20sample%20of%20the%20script%20I%20have%20so%20far.%20Hopefully%20someone%20can%20point%20me%20in%20the%20right%20direction.%20Thanks%20in%20advance.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBest%20regards%2C%3C%2FP%3E%3CP%3ERuud%20Gijsbers%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-194331%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EGraph%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EIntune%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Ruud Gijsbers
Contributor

Hi All,

 

I'm looking for a solution for the following:

 

We have several Apps published in Intune which are assigned to groups. I would like to add a group to the assignment of about 5 apps. To minimize the risk of mistakes, I would like to do this with Graph API. I took the Intune samples from Github and rewrote a script a little. But I can't find a way to add a group to the current assignments. I'm only able to overwrite the assignment.

 

I added a sample of the script I have so far. Hopefully someone can point me in the right direction. Thanks in advance.

 

Best regards,

Ruud Gijsbers

Related Conversations
Tabs and Dark Mode
cjc2112 in Discussions on
38 Replies
Extentions Synchronization
Deleted in Discussions on
3 Replies
flashing a white screen while open new tab
Deleted in Discussions on
14 Replies
How to Prevent Teams from Auto-Launch
chenrylee in Microsoft Teams on
29 Replies
Stable version of Edge insider browser
HotCakeX in Discussions on
35 Replies