function createUser() {
    const spaceAmount = 1073741824;   // ~ 1gb

    // Create app user
    client.enterprise.addAppUser(
      this.oktaRecord.name, 
      {
        space_amount: spaceAmount,
        external_app_user_id: this.oktaRecord.sub
      }
    ).then(appUser => {
      console.log(`New app user created with Box ID ${appUser.id}, Okta ID ${this.oktaRecord.sub}, and name ${appUser.name}`);
    });
  }
// Create a new app user if an Okta record doesn't already exist
Create a new app user if an Okta record doesn't already exist
Create a new app user if an Okta record doesn ' t already exist
function createUser() {
    const spaceAmount = 1073741824;   
    client.enterprise.addAppUser(
      this.oktaRecord.name, 
      {
        space_amount: spaceAmount,
        external_app_user_id: this.oktaRecord.sub
      }
    ).then(appUser => {
      console.log(`New app user created with Box ID ${appUser.id}, Okta ID ${this.oktaRecord.sub}, and name ${appUser.name}`);
    });
  }
function createUser ( ) { const spaceAmount = 1073741824 ; client . enterprise . addAppUser ( this . oktaRecord . name , { space_amount : spaceAmount , external_app_user_id : this . oktaRecord . sub } ) . then ( appUser => { console . log ( ` ${ appUser . id } ${ this . oktaRecord . sub } ${ appUser . name } ` ) ; } ) ; }
Create a new app user if an Okta record doesn't already exist
Create a new app user if an Okta record doesn ' t already exist
// ~ 1gb // Create app user