Skip to content

Latest commit

 

History

History
66 lines (60 loc) · 2.88 KB

File metadata and controls

66 lines (60 loc) · 2.88 KB
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const parseExpressionResponse = {
    expression: 'Replace([preferredLanguage], \"-\", , , \"_\", ,  )',
    targetAttributeDefinition: null,
    testInputObject: {
        definition: null,
        properties:[
            { key: 'objectId', value : '66E4A8CC-1B7B-435E-95F8-F06CEA133828' },
            { key: 'IsSoftDeleted', value: 'false'},
            { key: 'accountEnabled', value: 'true'},
            { key: 'streetAddress', value: '1 Redmond Way'},
            { key: 'city', value: 'Redmond'},
            { key: 'state', value: 'WA'},
            { key: 'postalCode', value: '98052'},
            { key: 'country', value: 'USA'},
            { key: 'department', value: 'Sales'},
            { key: 'displayName', value: 'John Smith'},
            { key: 'extensionAttribute1', value: 'Sample 1'},
            { key: 'extensionAttribute2', value: 'Sample 2'},
            { key: 'extensionAttribute3', value: 'Sample 3'},
            { key: 'extensionAttribute4', value: 'Sample 4'},
            { key: 'extensionAttribute5', value: 'Sample 5'},
            { key: 'extensionAttribute6', value: 'Sample 6'},
            { key: 'extensionAttribute7', value: 'Sample 1'},
            { key: 'extensionAttribute8', value: 'Sample 1'},
            { key: 'extensionAttribute9', value: 'Sample 1'},
            { key: 'extensionAttribute10', value: 'Sample 1'},
            { key: 'extensionAttribute11', value: 'Sample 1'},
            { key: 'extensionAttribute12', value: 'Sample 1'},
            { key: 'extensionAttribute13', value: 'Sample 1'},
            { key: 'extensionAttribute14', value: 'Sample 1'},
            { key: 'extensionAttribute15', value: 'Sample 1'},
            { key: 'givenName', value: 'John'},
            { key: 'jobTitle', value: 'Finance manager'},
            { key: 'mail', value: 'johns@contoso.com'},
            { key: 'mailNickname', value: 'johns'},
            { key: 'manager', value: 'maxs@contoso.com'},
            { key: 'mobile', value: '425-555-0010'},
            { key: 'onPremisesSecurityIdentifier', value: '66E4A8CC-1B7B-435E-95F8-F06CEA133828'},
            { key: 'passwordProfile.password', value: ''},
            { key: 'physicalDeliveryOfficeName', value: 'Main Office'},
            { key: 'preferredLanguage', value: 'EN-US'},
            { key: 'proxyAddresses', value: ''},
            { key: 'surname', value: 'Smith'},
            { key: 'telephoneNumber', value: '425-555-0011'},
            { key: 'userPrincipalName', value: 'johns@contoso.com'},
            { key: 'appRoleAssignments', 'value@odata.type':'#Collection(String)', value: ['Default Assignment'] }
        ]
    }
};

await client.api('/servicePrincipals/{id}/synchronization/jobs/{id}/schema/parseExpression')
	.post(parseExpressionResponse);