Newer Version Available
HeadlessSelfRegistrationHandler Interface
Namespace
Usage
The Headless Registration Flow allows you to control user registration experience in a third-party app while using Salesforce to authenticate users and manage their data access. When you set up this flow, add users in the class that is implementing the Auth.HeadlessSelfRegistrationHandler interface. This class runs after the user verifies their identity. For a detailed explanation of headless registration, see Headless Registration Flow for Private Clients or Headless Registration Flow for Public Clients, depending on your app type.
HeadlessSelfRegistrationHandler Methods
createUser(profileId, data, customUserDataMap, experienceId, password)
Signature
public User createUser(Id profileId, Auth.UserData data, String customUserDataMap, String experienceId, String password)
Parameters
- profileId
- Type: Id
- The ID of the profile that is assigned to new users.
- data
- Type: Auth.UserData
- A class that stores information about the user, such as their name and locale.
- customUserDataMap
- Type: String
- A string representation of a JSON object containing custom user information passed in during registration. We recommend that you deserialize this string into the equivalent Apex class structure. Determine what custom information to collect when you build your app’s registration experience.
- experienceId
- Type: String
- A custom value that determines what the end user experiences.
- password
- Type: String
- The user password.
Return Value
Type: User