For the complete documentation index, see llms.txt. This page is also available as Markdown.

Load segments

Bind the users in a CSV file to an existing segment.

Your goal

Put the users listed in a CSV file into a segment you have already created - a list of hashed emails, account IDs, or device identifiers.

Expected outcome

The users the file identifies are bound to the target segment, with the lifetime you chose.

Prerequisites

  • At least one segment of type USER_LIST to bind the identifiers to. Without one, the segment document type is unavailable.

  • A CSV file meeting the file requirements.

  • The compartment or registry the identifier belongs to.

Configure the import

  • Select the CSV property to use as the identifier.

  • Choose the identifier type: USER_ACCOUNT, USER_EMAIL, or USER_DEVICE_TECHNICAL_ID - and specify the related compartment for an account, or registry for a device technical ID.

  • Optionally select a hashing method to apply to the input. Only one hashing method per field is allowed.

If a user is not found for a row, a new user is created. On a segment load this is worth thinking about: a list of identifiers you do not otherwise collect will mint UserPoints that contain nothing but a segment membership.

  • Select the target segment the mapped identifiers are bound to.

  • Optionally update the lifetime value. It defaults to the lifetime configured on the target segment.

Example file

A single column is enough:

How reuse works here

For segments, the document import is named after the segment, not the file: Data Loader - segment-user-list - <SEGMENT_ID>. Every load into the same segment therefore appears as a new execution of the same import - which makes the execution history of a segment easy to read.

Verify

  • The transformation report shows no errors before upload.

  • The execution succeeds with the expected success count.

  • The segment's user count increases by roughly the number of rows - allowing for users already in it.

  • Members leave the segment when the lifetime expires.

Last updated

Was this helpful?