Skip to main content
This feature is deprecated for SDKs that use contextsLaunchDarkly no longer supports alias events for SDKs upgraded for contexts. To learn more, read about our SDKs that support contexts.To learn how to associate contexts without using the alias method, read Associate anonymous contexts with logged-in end users.
This topic explains how to alias the users of certain LaunchDarkly SDKs.

Aliased users

There are situations in which multiple LaunchDarkly users can represent one person. For example, this can happen when a person initially logs into an application. The person might be represented by an anonymous user before they log in, and a different user after they log in. In that case, that one person is identified by two different users as denoted by different user keys. Our SDKs can associate these two LaunchDarkly users by sending an alias event. Only two LaunchDarkly SDKs offer the ability to manually send an alias event. Details about each SDK’s configuration are available in the SDK-specific sections below:

Apex

To manually send an alias event:

Electron

To manually send an alias event: