Skip to content

Latest commit

 

History

History
40 lines (34 loc) · 750 Bytes

File metadata and controls

40 lines (34 loc) · 750 Bytes
description Automatically generated file. DO NOT MODIFY
const options = {
	authProvider,
};

const client = Client.init(options);

const crossTenantAccessPolicyConfigurationPartner = {
  tenantRestrictions: {
    usersAndGroups: {
      accessType: 'allowed',
      targets: [
        {
          target: 'AllUsers',
          targetType: 'user'
        }
      ]
    },
    applications: {
      accessType: 'allowed',
      targets: [
        {
          target: 'Office365',
          targetType: 'application'
        }
      ]
    }
  }
};

await client.api('/policies/crossTenantAccessPolicy/partners/90e29127-71ad-49c7-9ce8-db3f41ea06f1')
	.version('beta')
	.update(crossTenantAccessPolicyConfigurationPartner);