Skip to content

Latest commit

 

History

History
25 lines (19 loc) · 601 Bytes

File metadata and controls

25 lines (19 loc) · 601 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const assignment = {
  '@odata.type': '#microsoft.graph.cloudLicensing.assignment',
  'allotment@odata.bind': 'https://graph.microsoft.com/beta/admin/cloudLicensing/allotments/rkocgef3dgjhnu3gmu2mqhbdbmwcymnf6fk3k6a7zbui5e7gfpmi',
  disabledServicePlanIds: [
    'bed136c6-b799-4462-824d-fc045d3a9d25'
  ]
};

await client.api('/users/6d645c5f-089f-40d8-b0e7-136fb5c56d5b/cloudLicensing/assignments')
	.version('beta')
	.post(assignment);