- sym.sdk.integrations.sym.get_or_create_users_by_emails(emails: List[str], raise_on_error: bool = False) List[sym.sdk.user.User] ¶
For each of the given list of email addresses, retrieve the corresponding Sym
Userif one exists, or create a new one otherwise.
True, then any “routine” errors that occur while processing the list of emails (for example, an invalid email was specified or a user could not be found and failed to be created) will be raised as an exception. Otherwise, the errors will be logged as warnings and the corresponding user will be omitted from the output. The returned list of users will never contain
Regardless of the value of
raise_on_error, serious errors (such as a communication failure within the Sym platform or malformed input) will always be raised as exceptions.
emails – A list of email addresses of the users to retrieve or create. Must not contain any
raise_on_error – Whether to raise an exception if an error occurs while processing the list of emails. If
False, errors will be logged as warnings and the corresponding user will be omitted from the output. Defaults to
A list of Sym
Users corresponding to the given email addresses.
SymIntegrationError – If
Trueand any errors occur while processing the list of emails, or if any other error occurs.