Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 777 Bytes

File metadata and controls

29 lines (21 loc) · 777 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest major version. Current major version is $v0.*

// Dependencies
import (
	  "context"
	  msgraphsdk "github.com/microsoftgraph/msgraph-beta-sdk-go"
	  graphriskyusers "github.com/microsoftgraph/msgraph-beta-sdk-go/riskyusers"
	  //other-imports
)

requestBody := graphriskyusers.NewDismissPostRequestBody()
userIds := []string {
	"04487ee0-f4f6-4e7f-8999-facc5a30e232",
	"13387ee0-f4f6-4e7f-8999-facc5120e345",
}
requestBody.SetUserIds(userIds)

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=go
graphClient.RiskyUsers().Dismiss().Post(context.Background(), requestBody, nil)