ftos.data.migrateSessionDataToUser
Assigns data ownership for the records in an anonymous session to a platform user account. Populates the createdByUserId, modifiedByUserId, userId, businessUnitId attributes with the corresponding user ID and business unit ID.
IMPORTANT!
The user account running the method needs update access rights to session's records stored in the B2CExternalProcess entity. E.g.: a user with admin rights.
The user account running the method needs update access rights to session's records stored in the B2CExternalProcess entity. E.g.: a user with admin rights.
This is a data service method for business service components.
Syntax
Copy
ftos.data.migrateSessionDataToUser(
sourceSessionId: string,
targetUserId: string,
targetBusinessUnitId?: string,
): void
| Parameter | Type | Description |
|---|---|---|
sourceSessionId
|
string | ID of the anonymous session. |
targetUserId
|
string | ID of the user account to be assigned data ownership for the session records. |
targetBusinessUnitId (optional) |
string | ID of the business unit used to populate the records' businessUnitId attribute. If not specified, applies the target user's default business unit. |