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.NewUser() customSecurityAttributes:=graphmodels.NewCustomSecurityAttributeValue() additionalData:=map[string]interface{}{ engineering:=graph.New() projectDate:="2022-10-01" engineering.SetProjectDate(&projectDate) customSecurityAttributes.SetEngineering(engineering) } customSecurityAttributes.SetAdditionalData(additionalData) requestBody.SetCustomSecurityAttributes(customSecurityAttributes) // To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=gousers, err:=graphClient.Users().ByUserId("user-id").Patch(context.Background(), requestBody, nil)