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)