Skip to content

Latest commit

 

History

History
32 lines (24 loc) · 922 Bytes

add-multiple-members-to-group-go-snippets.md

File metadata and controls

32 lines (24 loc) · 922 Bytes
description
Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest major version. Current major version is $v1.*// Dependenciesimport ( "context" msgraphsdk "github.com/microsoftgraph/msgraph-sdk-go" graphmodels "github.com/microsoftgraph/msgraph-sdk-go/models"//other-imports ) requestBody:=graphmodels.NewGroup() additionalData:=map[string]interface{}{ odataBind:= []string { "https://graph.microsoft.com/v1.0/directoryObjects/{id}", "https://graph.microsoft.com/v1.0/directoryObjects/{id}", "https://graph.microsoft.com/v1.0/directoryObjects/{id}", } } requestBody.SetAdditionalData(additionalData) // To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=gogroups, err:=graphClient.Groups().ByGroupId("group-id").Patch(context.Background(), requestBody, nil) 
close