Import mobile devices into Universal Directory

Import the serial numbers of your managed iOS and Android devices from a CSV file so that you can preregister them.

About this task

Early Access release

Import devices with the Implementing XaaS for Bulk Device Import template in Workflows. The template uses an Anything-as-a-Source custom identity source to read a CSV file of devices from Google Drive and add each device to Universal Directory. After the import, you can preregister the devices with a device registration secret.

Before you begin

  • Enable the Okta Verify Device Posture Sensor Mode for mobile self-service feature. Enable the desktop Device Posture Sensor Mode feature first. See Enable self-service features.
  • Make sure that your org has Workflows and Okta Lifecycle Management enabled.
  • Create a CSV file with one row for each device, using the following columns.
    • serialNumber: required. The serial number of the device.
    • platform: required. The value must be IOS or ANDROID, in capital letters.
    • displayName: optional. A name for the device. If you leave it blank, the device appears under its serial number.
  • Upload the CSV file to Google Drive, and copy the file ID from the URL of the file.

Procedure

  1. Create a custom identity source with profile sourcing enabled, and copy its application ID from the browser URL.
  2. Grant the okta.identitySources.manage, okta.identitySources.read, and okta.apps.read scopes to the Workflows OAuth app, and then reauthorize your Okta connection in Workflows.
  3. In Workflows, create a connection for Google Drive.
  4. In the Admin Console, go to the Workflows Console, and add the Implementing XaaS for Bulk Device Import template to a folder.
  5. Edit the Orchestrate Import from csv File flow. In the Assign card, enter your application ID. In the Google Drive: Download File card, enter your file ID and select your Google Drive connection.
  6. Make sure that every Okta card uses your Okta connection and has your custom identity source app selected.
  7. Review the schedule of the Import from csv (Create) flow, then turn on that flow and its helper flows. Leave the Import from csv (Delete) flow turned off for this import procedure.

    By default, both entry flows run at 9:00 AM Pacific time on the first day of every month. To import the devices now, run the Import from csv (Create) flow.

The devices appear on the Devices page with the Imported status. The import runs in the background, so the devices can take a few minutes to appear. Compare the page with your CSV file to confirm that every device was added.

Only one import session can be active at a time, so don't run the create and delete flows at the same time. The import uses the serial number of each device as its external ID.

For more detail, including how to test the template and delete devices, see the readme for the template.

What to do next

Preregister the imported devices. See Preregister mobile devices.