The lookup account authentication action uses the current subject attributes to lookup an account on an account manager and then adds it to the action’s output attributes.
The name of the input subject attribute to use for the lookup is configurable, as well as the lookup criteria (e.g. username, email, phone number).
If an account is found, the account information is added to an account attribute on a configurable location (e.g. subject attributes, context attributes, or action attributes).
This action is open source and the code can be found on the action’s GitHub project page.