ftos.identity.users.createTemporary
Starting with v24.3.0, this is renamed from server.B2C.createTemporaryIdentity to ftos.identity.users.createTemporary.
Creates a temporary user for a journey exposed in a B2C portal. This is a business logic method for business service components.
B2C Portals, formerly named Anonymous Frontends, expose specific Digital Journeys to unauthenticated users. This allows you to provide access to specific user journeys (for instance getting a quote for a car insurance) without having to create a FintechOS Platform user account in advance.
Make sure the key in the Configuration Manager is added both in the b2c portal section (kv/<environment name>/b2cportal/b2c) and in portal or open api depending on your scenario. Else at user creation, the journey will not be found. Find more details in the B2C Portals page and the tutorial on configuring such portals.
If you need the temporary user to have access to a certain entity, make sure the userID returned by the method is updated in the entity’s userID. Also, if you are using a B2C flow, ensure that the details from the B2CExternalProcess are filled in, and you add a row for each extension of the principal entity.
For example, to grant access to a temporary user to the entity X on record Y, ensure that the userID is included in the userID field of record Y. In addition, if entity X has extensions to entities A, B, and C, you need to add entities A, B, and C to the b2cExternalProcess.
Syntax
ftos.identity.users.createTemporary("journeyName", "culture");
| Parameter | Description |
|---|---|
journeyName
|
Name of the journey that is exposed in the B2C portal. |
culture
|
The language in which the journey is localized. |
Example
In this example:
- We are creating a temporary user for the Banking_B2C_exp journey.
- The language in which the journey is localized is Romanian.
- The method returns a sessionId together with a temporaryuserId.
server.b2C.createTemporaryIdentity("Banking_B2C_exp","ro-RO");