ftos.identity.users.deleteTemporary

IMPORTANT!  
Starting with v24.3, this is renamed from server.b2c.deleteTemporaryIdentity to ftos.identity.users.deleteTemporary.

Deletes temporary identities created in B2C sessions. You need admin rights to run this function. This function checks the AnonymousUserLifespanDays property found in the B2C portal configuration.

This function only removes temporary users, not other types of users, such as: system users, service accounts, etc.

This is suitable for business logic modules of business service components.

Syntax

Copy
function ftos.identity.users.deleteTemporary(userId: string): void
 
Parameter Description
userId The Id of the temporary user to be deleted. One or more users can be added as parameter.

Return Value

Returns an object with the results of the operation:

Examples