Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 538 Bytes

File metadata and controls

16 lines (10 loc) · 538 Bytes
description Automatically generated file. DO NOT MODIFY
// Code snippets are only available for the latest version. Current version is 6.x

GraphServiceClient graphClient = new GraphServiceClient(requestAdapter);

PersonAnnotation personAnnotation = new PersonAnnotation();
personAnnotation.setAllowedAudiences(EnumSet.of(AllowedAudiences.Organization));
PersonAnnotation result = graphClient.users().byUserId("{user-id}").profile().notes().byPersonAnnotationId("{personAnnotation-id}").patch(personAnnotation);