Skip to content

Latest commit

 

History

History
43 lines (36 loc) · 1023 Bytes

File metadata and controls

43 lines (36 loc) · 1023 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const accessPackageAssignmentRequest = {
    requestType: 'userUpdate',
    answers: [
        {
            '@odata.type': '#microsoft.graph.accessPackageAnswerString',
            value: 'My updated answer.',
            answeredQuestion: {
                '@odata.type': '#microsoft.graph.accessPackageTextInputQuestion',
                id: '0d31cc60-968e-4f92-955b-443fed03d6f6'
            }
        }

    ],
    schedule: {
        startDateTime: '2024-09-18T20:49:16.17Z',
        recurrence: null,
        expiration: {
            endDateTime: '2024-10-18T20:49:15.17Z',
            duration: null,
            type: 'afterDateTime'
        }
    },
    assignment: {
        id: '329f8dac-8062-4c1b-a9b8-39b7132f9bff'
    }
};

await client.api('/identityGovernance/entitlementManagement/assignmentRequests')
	.post(accessPackageAssignmentRequest);