Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 548 Bytes

create-directoryobject-from-application-java-snippets.md

File metadata and controls

16 lines (10 loc) · 548 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);

com.microsoft.graph.beta.models.ReferenceCreate referenceCreate = new com.microsoft.graph.beta.models.ReferenceCreate();
referenceCreate.setOdataId("https://graph.microsoft.com/beta/directoryObjects/{id}");
graphClient.applications().byApplicationId("{application-id}").owners().ref().post(referenceCreate);