sym.sdk.integrations.sym.get_or_create_user_by_email¶
- sym.sdk.integrations.sym.get_or_create_user_by_email(email: str) sym.sdk.user.User ¶
For the given email address, retrieve the Sym
User
if one exists, or create a new SymUser
if none exists.If the user was not found and could not be created, or another error occurred (e.g., an invalid email address was specified), this function will instead raise an exception. It will never return
None
.- Parameters
email – The email address of the user to retrieve or create.
- Returns
The Sym
User
corresponding to the given email address.- Raises
SymIntegrationError – If the user could not be retrieved or created, or if the email address is invalid, or on any other error.