Assign user to organisation based on Zendesk data

A task to assign signon users to an organisation based on their email domains. We got the mapping of domain names to their organisations from Zendesk organisations api.