Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 799 Bytes

File metadata and controls

29 lines (21 loc) · 799 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.NewConfirmCompromisedPostRequestBody()
userIds := []string {
	"29f270bb-4d23-4f68-8a57-dc73dc0d4caf",
	"20f91ec9-d140-4d90-9cd9-f618587a1471",
}
requestBody.SetUserIds(userIds)

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