@Johan Berg, Thanks for posting in Q&A.
To assign to multiple groups, you can use the similar format as the above. Add each group into the request body. Here is an example to add two groups:
{
"enrollmentConfigurationAssignments": [
{
"target": {
"@odata.type": "#microsoft.graph.groupAssignmentTarget",
"groupId": "The group id you want assign ESP to"
}
},
{
"target": {
"@odata.type": "#microsoft.graph.groupAssignmentTarget",
"groupId": "The group id you want assign ESP to"
}
}
]
}
Then the two groups display under the ESP assignment:
Hope the above information can help.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.