MultiPaaS

Import existing data

Use an import to bring the data from your app's old database into a MultiPaaS application. An import writes everything or nothing. You need permission to manage the application's access.

Before you start, add every entity and field the old data needs to your model. See Model your data.

Prepare the files

Export your old data as JSON-lines files, with one JSON object per line. Put them all in one directory. You need these files:

Here is one line from each. The values are made up.

tenants.jsonl:

{"id": "t-100", "name": "Acme Kitchen"}
{"id": "t-200", "appTenant": "8c1f…"}

The first line makes a new app-tenant. The second puts t-200 into an app-tenant you already have, and 8c1f… stands for that app-tenant's id. See Import into an app-tenant you already have.

users.jsonl (name is optional):

{"id": "u-7", "email": "sam@example.com", "name": "Sam"}

memberships.jsonl:

{"user": "u-7", "tenant": "t-100", "role": "Member"}

Recipe.jsonl:

{"id": "r-1", "tenant": "t-100", "createdBy": "u-7", "createdAt": "2026-01-15T10:00:00Z", "updatedAt": "2026-01-15T10:00:00Z", "deletedAt": null, "fields": {"title": "Pancakes"}}

Every id is an id from your old database, and one id names one row of its entity, across every tenant and the app-wide rows. A reference to another row uses that row's old id. MultiPaaS assigns new ids (or, for a tenant you map onto an existing app-tenant, uses that app-tenant) and keeps the references right. The role in a membership must be one your application declares.

createdAt, updatedAt and deletedAt are optional, and each may be null. A value that is present is written as YYYY-MM-DDThh:mm:ss, with optional fractional seconds, then Z or a ±hh:mm offset, such as 2026-01-15T10:00:00Z or 2026-01-15T04:00:00.5-06:00. It must fall on a date that exists, between the years 1 and 9999 in UTC. A timestamp field takes the same form.

In fields, use each field's graphqlFieldName, which multipaas model show prints. Name an entity's file after its name, its type name or its plural name. Each file can be at most 512 MiB. A list field's value is a JSON array of at most 1,000 strings, such as "tags": ["a", "b"]; on an enum list each string is one of the enum's values. A null element, a nested array, a non-string element, more than 1,000 elements or an enum value the enum lacks is refused. A one-dimensional text[], varchar[] or enum array column exports as a JSON array of strings; an integer[] exports numbers and is refused.

Files

An import carries the files that records hold. Put them in a files folder inside the directory, beside the .jsonl files, in folders if you like:

DIR/
  Recipe.jsonl
  files/
    pancakes.jpg
    pies/apple.jpg

In a line's fields, set each file field to the file's path under files, written with / separators:

{"id": "r-2", "tenant": "t-100", "fields": {"title": "Apple pie", "photo": "pies/apple.jpg"}}

multipaas import create uploads every file under files with the .jsonl files. It follows symlinks: files itself, or any file or folder under it, can be a link, and each file is named by the path it is reached at under files. A link to a folder uploads every file under it, whether or not a line names one, so check where each link points before you run import create: find -L DIR/files -exec test -h {} \; -exec ls -ld {} \; -exec realpath {} \; lists them, including links inside a linked folder, each followed by the real path it leads to. A link that points at nothing, into a chain of links that loops, or at a folder it sits inside stops import create before anything is made, and the message names the link. Point a link that points at nothing or into a loop straight at the file or folder it stands for. If that no longer exists, remove the link; import check then lists each line that named a file through it as a missing file. Remove a link to a folder it sits inside. To add one file to an import you already made, put it under files at the path your lines use, and run multipaas import add --app APP_ID --env ENV_ID --import IMPORT_ID --kind files --name PATH --file DIR/files/PATH. Keeping it under files means a new import made from the directory carries it too. A name can be at most 255 bytes. Uploading files needs CLI 1.4.0 or later, and following symlinks needs CLI 1.5.0 or later (an older CLI skips links, so import check reports the lines that name their files as missing-file); declaring a file field with the CLI needs CLI 1.1.0 or later.

import check reports a line whose file field doesn't name a file in the import, as missing-file: put the file under files at the path the line names, or correct the line, then run import create again for a new import. It reports a file that is larger than the field allows as file-too-large: shrink the file, or raise the field's limit with multipaas field update --app APP_ID --id FIELD_ID --max-file-bytes BYTES, where FIELD_ID is the file field's id from multipaas model show. A required file field needs a file in every line.

One import can name at most 11,000 files and 99 GiB of them, counting a file once for each line and field that names it. import check reports an import over either limit as too-many-files, with no file or line. To go on, split the data across several imports, and plan every import before you run the first. A row names another through tenant, createdBy, a membership's user and tenant, a reference or a parent field. Rows that can each reach the other by following names, directly or through other rows, must all share one import. Count a name that points at a record with a non-null deletedAt as pointing both ways, because a later import can't name a deleted record. For example, A names B, B names C and C names A share one import. So do a deleted record D, every row that names D, and every row on a path of names between those rows. If such a group still exceeds a limit, the data can't be split to fit: don't run any import, and report it to MultiPaaS. Each import is all-or-nothing on its own, but together they are not: an import that already ran stays written if a later one fails.

import run puts a copy of the file on each new record that names it, so two lines that name one file each get their own copy. The record's file is read with the same access as the record, through the generated API.

App-wide records

An app-wide record belongs to no app-tenant, and every app-tenant in its environment shares it. See Applications and app-tenants. To import one, set its tenant to null.

Word.jsonl:

{"id": "w-1", "tenant": null, "fields": {"text": "hola"}}

A line with no tenant is refused. It doesn't become app-wide. One file can hold app-wide and tenant records together.

On a managed entity, each imported record that belongs to an app-tenant is managed by the user its row names, or by whoever runs the import when the row names no one, so other members don't see it unless a role gives them record.view_all or the record is shared with them: its manager can share it from the record's Sharing tab, or the entity can share its new records with the app-tenant. App-wide records aren't shared this way; roles read them with record.app_wide.view. To let everyone in each app-tenant read the app-tenant records, turn on sharing new records with the app-tenant for the entity before you run the import. If you already ran it, share the imported records with shareRecords from a job whose role holds record.manage_all for the entity. The imported records have new ids, not your old ones: list the entity's records with the job's token and scope: TENANT, which a role holding record.manage_all for the entity can read in full, and pass the ids the list returns. A list returns one page, so read every page before you share, then share the ids from all pages in batches of 100. Without scope: TENANT the list also returns the entity's app-wide records that the job's roles let it view, and an app-wide id is refused with RECORD_NOT_SHAREABLE, and the whole call with it. The list holds every live record of the entity in the app-tenant, imported or not, so sharing its ids shares the other records too. A call sets the named principal's share on each record it shares through to the level you give, and lowers a higher share that principal already holds: an everyone share at EDIT on an older record drops to VIEW if you share at VIEW. Only lowering a MANAGE share is guarded, and a call that would leave a record with no MANAGE share is refused with LAST_MANAGER. The generated API can't list shares, so narrow the list with where to the records you mean to share, share at the level you want every one of them to have, and check the Sharing tab of any record that may already be shared. A list shows live records only, so a record with a deletedAt is left out of it; don't pass a deleted record's id, because it is refused with NOT_FOUND, and the whole call with it. The job's token is for one app-tenant, and every id in a call must belong to it: an id from another app-tenant is refused with NOT_FOUND, and the whole call with it. Get a token for each app-tenant and share its records with that token. The job needs record.manage_all for the entity at each of those app-tenants, from a role it holds there or an application-wide role. An app-wide token is refused with UNAUTHORIZED.

Import into an app-tenant you already have

By default each line in tenants.jsonl makes a new app-tenant. To bring an old tenant's data into an app-tenant that already exists, do three things.

  1. Find the app-tenant, or create it first. ENV_ID is the environment you run the import in.

    multipaas tenants list --app APP_ID --env ENV_ID
    multipaas tenants create --app APP_ID --env ENV_ID --name "Acme Kitchen" --json
    

    tenants create --json prints {"appTenant": {"id": "…", "name": "…"}}. Take the id.

  2. In tenants.jsonl, write the old tenant's line with appTenant in place of name: {"id": "t-200", "appTenant": "APP_TENANT_ID"}. No new app-tenant is made. Every record and membership that names t-200 goes into that app-tenant, and so does a later import that names it without a tenants line for it, while that app-tenant is live and until an earlier import has put the same old id into a second live app-tenant (see ambiguous-tenant below).

  3. Upload, check and run the import as usual.

If you point your app at an app-tenant for deploy settings, app identities or testAppTenantId in multipaas.json, do it before you run the import, so nothing needs repointing afterwards.

A record's old id is unique per app-tenant, and an app-wide record's old id is unique app-wide. A user is held per environment and linked again when its email is unchanged. So you can import one old tenant's data into a second app-tenant with its original ids. Use the app-tenant you already have for it, as the steps above say, or create one, then make an import with:

A line in it names records of its own app-tenant first, then app-wide records, and never another app-tenant's.

Five problems can come up:

Replace a record with an imported line

When import check reports duplicate-unique-key between a line and a record already in the line's app-tenant, you can keep the line and have its record take the old record's place. The old record may be one an earlier import made, or one no import made. The changes you make here, with entity update, records update, records delete or on a record's Sharing tab, are made outside the import. They stay even if the import's check fails or it is not run: handle the reported problem as Upload and check or Run it says.

On a managed entity, the steps below keep the new record from letting anyone do more than the old record lets them, except in the cases listed just before step 1. People reach a record in two ways:

The import gives the new record these shares and no others:

A record of an unmanaged entity has no shares of its own. People reach it through roles and its managed parent's shares, so give the line the old record's parent and skip steps 1, 3, 4 and 6. When no import made that parent, no line can name it. Set the line's parent field to null, which leaves the new record readable only by roles that read every record of its entity, and after the import set the parent with records update, as step 8 does for references. A required parent field can't be null (missing-field), so for one, keep the other record instead. An app-wide record has no shares either, and roles alone reach it, so skip those steps for it too. Who can read which records explains roles and shares.

On a managed entity, step 6 gives the new record the old record's shares and brings the import's manager's share down to theirs on the old record. The new record can still let someone do more than the old record in these cases:

Shares the old record's tab shows as "Removed user" or "Removed group" aren't carried over, since those principals are no longer in the app-tenant. That only narrows access.

  1. Note the old record's access. Open the old record's Sharing tab in the web app and note each share's principal and level. Then run multipaas model show --app APP_ID. An entity that shares its new records with the app-tenant shows shares new records: view or shares new records: edit after managed true.

  2. Free the unique values. Change the old record's unique-constraint values so it no longer clashes:

    multipaas records update --app APP_ID --tenant APP_TENANT_ID --entity ENTITY_ID --id RECORD_ID --data 'JSON'
    

    --data is keyed by field id, from multipaas model show, not by the names the import lines use. For an app-wide old record, use --app-wide --env ENV_ID in place of --tenant, where ENV_ID is the environment the import uses. The same goes for every --app-wide command below.

  3. Name a manager the old record already has. Set the line's createdBy to the old id of a user who already manages the old record. Best is a user its Sharing tab lists at manage by name: the share the import gives them on the new record is then the same as theirs on the old one. Otherwise name a member of a group it lists at manage, any member of the app-tenant when it lists Everyone at manage, or a user whose role holds record.manage_all for the entity, as the default App manager role does. The tab names a user by their name, or by their email when their account has no name: match it to a row in users.jsonl, or ask the user for their email. If no import made that user, add their row to users.jsonl with their account's email, which links it to that account. That user also becomes the new record's creator.

    Sometimes no user manages the old record: its shares at manage are all to groups with no members or shown as "Removed", and no one's role holds record.manage_all for the entity (the default App manager role does, so this needs no one with that role either). In that case, ask whoever owns the data who should manage the new record and name them, or leave createdBy out so that whoever runs the import does.

    Before you go on, tell whoever owns the data which of the cases listed before step 1 apply to the import's manager.

  4. Decide whether to keep the import from sharing the new record wider. This step applies when the entity shares its new records at a level the old record's Everyone share doesn't reach: the old record has no Everyone share, or it has one at view while the entity shares at edit. The import then gives the new record a wider Everyone share, the first case listed before step 1. To avoid that, you can turn the entity's sharing off for the moment the import runs, in step 5. That needs CLI 1.7.0 or later and a role that holds model.edit.

    This changes the entity for the whole application. While sharing is off, no record of it is shared with Everyone when it is created, in any app-tenant or environment, whether a member, an app identity or an import creates it. Those records stay unshared after you turn sharing back on. Choose it only if that is acceptable.

  5. Import the line. Make the new import with the line as it is and check it. Until the check passes, handle each problem it reports as Upload and check says: a fix to your files or model needs a new import, which you check in turn, and some problems need this import checked again. When you are back here to run the same import again, don't make a new one: check that import again where the section that sent you here says to, and run it as it is when its status is checked. A run lasts from step 4 to the end of this step, and each time you start again at step 4 a new one begins: what you wrote down for an earlier run, for this import or another, doesn't count for this one. If you chose in step 4 to turn sharing off, first ask anyone else whose role holds model.edit not to change the entity's sharing until the import has finished and any turn-off below has been undone. Then run multipaas model show --app APP_ID and note the level the entity's line shows after shares new records. Write it down where you'll find it again. If the line shows no level, sharing is already off: skip the turn-off. Otherwise turn sharing off right before the run:

    multipaas entity update --app APP_ID --id ENTITY_ID --share-with-tenant off
    

    Whatever that command prints, run multipaas model show --app APP_ID and read the entity's line. If it still shows shares new records, sharing is on. The command needs model.edit: someone whose role holds it can turn sharing off for you, or you can run with sharing on. If sharing was turned off and the import then doesn't run, because you decide not to or something stops you first, have it turned back on at the level you noted before you stop, whoever turned it off, as the paragraph that begins "If you noted a level" says.

    Right before the run, whether or not you chose in step 4 to turn sharing off, run multipaas model show --app APP_ID, read the entity's line, and write down the level it shows after shares new records, or that it shows none, and the import's ID. If it shows shares new records at a level the old record's Everyone share doesn't reach, the first case listed before step 1 applies. Then run the import. import run can return before the import has finished: it stops waiting after 20 minutes and tells you to run import status later. Read multipaas import status --app APP_ID --env ENV_ID --import IMPORT_ID --json until its status is neither checking nor importing. imported means the line was imported, and any other status means it wasn't. If it still shows checking or importing more than 20 minutes after its startedAt, the import may be stuck: run multipaas import check --app APP_ID --env ENV_ID --import IMPORT_ID, which stops a stuck import and checks it again, and keep reading the status. If import status is refused, the import's status is unknown: don't take the line as not imported, don't run the import again, and don't go on to step 6. Give the import's ID to someone who can read its status, and ask them to read it until it is neither checking nor importing and tell you what it shows. If it still shows checking or importing more than 20 minutes after its startedAt, they, or someone who can, run multipaas import check --app APP_ID --env ENV_ID --import IMPORT_ID and keep reading it. If sharing was turned off, run model show and read the entity's line too. If it shows no shares new records, sharing stays off for the whole application until that status comes back and you turn it back on. If model show fails, take it that sharing may still be off, and keep the level you noted for when the status comes back. Once you have the final status, use it as the import's status from here on. Then run model show again: if the entity's line shows shares new records, or you wrote down for this run that sharing is back on, leave sharing as it is; otherwise turn sharing back on as the paragraph that begins "If you noted a level" says. Then go on as the paragraph that begins "Whether or not sharing had to go back on" says.

    If you're interrupted after turning sharing off, for example because your terminal closed, don't start again at step 4. Come back to this step with what you wrote down. If you wrote down no import ID for this run, you hadn't run the import: don't run anything, have sharing turned back on as for an import that doesn't run, earlier in this step, then start again at step 4. If you did, read multipaas import status for that ID: checked means you hadn't run it, and any other status means you had. If that command is refused, don't run anything, and do what the paragraph above says for a refused import status. If its status was checked, you hadn't run it: have sharing turned back on as for an import that doesn't run, earlier in this step, then start again at step 4 with that import. If you had, keep reading its status, or get it from someone who can read it as above if reading it is refused, until it is neither checking nor importing, then run model show again. If the entity's line shows shares new records, or you wrote down for this run that sharing is back on, leave sharing as it is and skip the next paragraph. Otherwise, use what you wrote down right before the run as what model show showed then, and turn sharing back on as the next paragraph says.

    If you noted a level right before turning sharing off, you haven't written down for this run that sharing is back on, and either the import doesn't run or model show showed sharing off right before the run, sharing has to go back on, whoever turned it off. First run model show again. If it fails, ask someone whose role holds model.edit to run it and read the entity's line for you, and don't turn sharing back on until someone has. If the entity's line shows shares new records, someone has set sharing since, so leave it as it is, write down that sharing is back on for this run, and skip the rest of this paragraph. Otherwise someone whose role holds model.edit turns it back on at the level you noted: --share-with-tenant view or --share-with-tenant edit. Check that model show shows shares new records at that level again, and once it does, write down that sharing is back on for this run. Until it does, the entity's sharing for the whole application isn't what it was before you turned it off: every record of the entity created in the meantime, in any app-tenant or environment, keeps the Everyone share it was created with, or none while sharing is off. So if turning it back on is refused or fails, or the check doesn't show shares new records at that level, have someone whose role holds model.edit set it to that level before you go on.

    Whether or not sharing had to go back on, if the line was imported, go on to step 6. If it wasn't, do what Run it says for import-failed, or, when a stuck import's second check ended in check-failed, what Upload and check says for that. A checked status means that check passed but the line hasn't run yet, so run it again. Some problems need a new import, some need this import checked and run again, and some mean you shouldn't retry. Whenever you run an import again, start again at step 4.

  6. Give the new record the old record's access. Right after the import runs, the new record's manager opens its Sharing tab and the old record's in the web app, and does the following, in order. Match the old record's tab as it shows now, not the notes from step 1: its shares may have changed since. If someone changes the old record's shares before step 9, make the same change on the new record.

    1. Makes its Everyone share match the old record's. Remove it when the old record has none. Share with Everyone at the old record's level when the levels differ: sharing again with the same principal changes that share's level.
    2. Shares it with each of the old record's other principals except the import's manager, at the same levels. Skip any share the tab shows as "Removed user" or "Removed group": that principal is no longer in the app-tenant and can't be shared with again.
    3. Makes the import's manager's share match theirs on the old record. If the old record's tab lists them by name, share with them again at that level. If it doesn't list them, remove their share. Skip this when it lists them at manage. Do this last: a record keeps at least one share at manage, so this is refused until sub-step 1 or 2 has given the new record another one.

    The new record now has the old record's shares, except as the cases listed before step 1 and the paragraph after them say. To keep both records, stop here.

  7. Wait for the rest of your imports. If you planned more imports after this one, wait until the last of them has run before going on. Until then, their lines that name the old record still resolve to it. When a later import replaces this new record in turn, finish steps 7 to 9 for this record before starting them for that one.

  8. Move the references. Find the new record's MultiPaaS id with multipaas records list --app APP_ID --tenant APP_TENANT_ID --entity ENTITY_ID, or with --app-wide --env ENV_ID in place of --tenant when it is app-wide. Then change each record that references the old one, including records these imports made, to name that id:

    multipaas records update --app APP_ID --tenant APP_TENANT_ID --entity REFERENCING_ENTITY_ID --id REFERENCING_RECORD_ID --data 'JSON'
    

    REFERENCING_ENTITY_ID and REFERENCING_RECORD_ID are the entity and id of the record you are changing, which may be of another entity than the new record. Run it with --tenant set to the app-tenant of the record you are changing, or with --app-wide --env ENV_ID in place of --tenant when that record is itself app-wide. An app-wide record can be referenced from app-wide records and from records in several app-tenants, so update each of them in its own app-tenant, or app-wide.

    A record of an unmanaged entity whose parent field you move this way is reached from then on through the same shares as the new record. On a managed entity, those are the new record's shares after step 6, so the cases listed before step 1 apply to the moved record too. When the new record is itself of an unmanaged entity, it has no shares of its own, so the moved record is reached through the same managed record as the new one.

  9. Delete the old record. Deleting is destructive. Use CLI 1.9.0 or later; on an older CLI, use records retire.

    multipaas records delete --app APP_ID --tenant APP_TENANT_ID --entity ENTITY_ID --id RECORD_ID
    

    For an app-wide old record, use --app-wide --env ENV_ID in place of --tenant, in records retire too.

    Any import you make after this names the new record by this line's old id, not the old record's.

For example, take a managed Project entity with a unique constraint on code, which shares its new records at edit. Your app-tenant has a project with code APL that no import made. Its Sharing tab lists Sam at manage, Everyone at view and the Finance group at edit. import check reports duplicate-unique-key for this line in Project.jsonl:

{"id": "p-41", "tenant": "t-200", "createdBy": "u-7", "fields": {"code": "APL", "name": "Apollo"}}
  1. model show lists Project (Project, managed true, shares new records: edit).
  2. Change the old project's code to APL-old with records update.
  3. u-7 is Sam's row in users.jsonl ({"id": "u-7", "email": "sam@example.com", "name": "Sam"}), so the new project's manager and creator is Sam, who already manages the old one.
  4. The entity shares at edit and the old project's Everyone share is view. The owner agrees to turn sharing off for the run.
  5. Check the import. Once the check passes, turn sharing off with --share-with-tenant off, run the import, then turn sharing back on with --share-with-tenant edit.
  6. On the new project's Sharing tab, Sam shares it with Everyone at view and with Finance at edit. Sam already manages the old project, so there is nothing to lower.
  7. This is the last import, so there is nothing to wait for.
  8. Move each record that references the old project to the new project's id.
  9. Delete the old project.

Upload and check

Upload the directory. DIR is the directory that holds your files.

multipaas import create --app APP_ID --env ENV_ID --dir DIR

APP_ID is the id that multipaas apps create or multipaas apps list printed. The command prints the import and its id. Use it as IMPORT_ID below.

An account's plan can limit the bytes its imports take in each month, counted in UTC. Each file counts its size when import create or import add adds it to an import, whether or not the import ever runs. Taking it off the import, or deleting the import, doesn't give the bytes back, so running import create again for a new import counts its files again. A file that would take the month past the limit is refused with LIMIT_REACHED and the message "This file would take this account past its monthly import limit. It resets at …", and isn't added. import create stops there; the files it added before it stay on the import and count. The limit resets at the start of next month in UTC, and a higher limit comes from a larger plan. The account's Usage page in the console shows this month's imports against the limit.

An import belongs to one environment: the --env ENV_ID you pass, else environmentId in multipaas.json when that file is for the same application (CLI 1.2.0 or later), else the default environment. Pass --env ENV_ID explicitly on import create and on every later command for this import, because each one finds imports only in its own environment. If you give none to import create, pass the environment it picked, so that changing multipaas.json later can't move the follow-ups. A replacement import, made by running import create again after a failed check or run, takes the same --env as the import it replaces, or it can land in a different environment.

Check every row:

multipaas import check --app APP_ID --env ENV_ID --import IMPORT_ID

Read the counts it prints. The import's status is checked when no row has a problem.

If the status is check-failed, nothing was written. Read each problem. Most name a file, and usually a line. Fix your files or your model, then run import create again. That makes a new import with a new id, holding only what is in the directory, so keep every file your lines name under files, including any you added with import add.

A line with no deletedAt must not repeat the values of another such line for the same app-tenant, or of a live record in that app-tenant, for any one unique constraint of its entity. Lines for different app-tenants may share values, and app-wide lines are checked among themselves, as App-wide records says. A line with a non-null deletedAt is not checked, and other lines may repeat its values. import check reports that as duplicate-unique-key, naming the fields of the constraint the line repeats, and a line can get one per constraint.

Some problems name no file. For too-many-files, split the data across several imports, as Files describes. Run import check again on the same import for check-error and check-timed-out. For check-unauthorized, you can no longer manage the application, or you lack read access to an entity's records that the check reads. It reads the records a line references or has as its parent from an earlier import, and, for an entity with a unique constraint, the records already in the tenant or app-wide scope the line goes in. Don't retry until someone who can grant the access the message names has granted it; then run import check again on the same import.

Run it

Run the import only when its status is checked:

multipaas import run --app APP_ID --env ENV_ID --import IMPORT_ID

It writes all of your data or none of it. If the status is import-failed, nothing was written. A problem other than import-error that names a file means the data or the model is wrong: fix your files or your model, then run import create again for a new import, as after a failed check. import run also reports duplicate-unique-key when another write took a line's values after the check. For import-timed-out, and for an import-error whose message ends "Try again", with or without a file, run import check and then import run again on the same import. Any other import-error, with or without a file, means MultiPaaS could not write rows that passed the check: don't change the data and don't retry, and report it to MultiPaaS with the import's id. For import-unauthorized, you can no longer manage the application, you lack read access to an entity's records that the run reads again (the ones check-unauthorized lists above), you lack permission to create or delete the records it writes, or you can't edit a record from an earlier import that a new record names as its parent. Don't retry until someone who can grant the access the message names has granted it; then run import check and import run again on the same import. For application-inactive, don't retry: the application was deleted, and a deleted application accepts no import, so load the data into an application that isn't deleted.

Imported users are not emailed. They join their tenants when they next sign in, if that is within 7 days of the run. After that, an unclaimed membership lapses.

To see how many are pending, accepted and lapsed, run multipaas import status --app APP_ID --env ENV_ID --import IMPORT_ID. multipaas import invitations --app APP_ID --env ENV_ID --import IMPORT_ID lists the lapsed ones. multipaas import reissue --app APP_ID --env ENV_ID --import IMPORT_ID gives every membership it re-issues another 7 days from now, claimed when the person next signs in, and sends no email. With --import, a membership whose tenant or role is deleted, or whose role you do not hold, is skipped and stays lapsed. For a deleted import, which import reissue --import refuses as not found, and for imports run before imports recorded their invitations, name the tenant with --tenant APP_TENANT_ID instead of --import. With --tenant alone, import reissue re-issues the lapsed memberships of every import into that app-tenant, other imports' included, which can renew a role you did not mean to, so run import invitations with the same --tenant first and check the list (EMAIL, TENANT, ROLE and EXPIRED; with --json, each invitation's dataImport is the import that made it, and null when the invitation names no import, as for imports run before imports recorded their invitations) before you re-issue, since it renews what is lapsed when it runs. Prefer --import where it reaches them. With --tenant, import reissue refuses a tenant that is deleted, unknown or outside the environment as not found, and skips a membership whose role is deleted or not held. To restore a skipped membership, invite the person again to a live tenant and role when its tenant or role was deleted, or ask someone who can manage the application's access and holds its role across the application, both in the import's environment, to run import reissue. import invitations, import reissue and the counts in import status need CLI 1.5.0 or later.

More

Using Claude Code? The MultiPaaS plugin does these steps for you.