Skip to content

Instantly share code, notes, and snippets.

@stevekrouse
Created August 3, 2020 15:35
Show Gist options
  • Save stevekrouse/bd156e06fd09f94f29d3d99e2aaa8182 to your computer and use it in GitHub Desktop.
Save stevekrouse/bd156e06fd09f94f29d3d99e2aaa8182 to your computer and use it in GitHub Desktop.

Update from third-party accounts

When a company signs up for Secureframe, they connect it to all the vendors they use. We then authenticate to those vendors and pull all the employees from that company that use the service. For example, a customer may connect Secureframe to GSuite, Gusto, and Github.

After we pull data from these services, we want to use it to update the fields on the internal Secureframe User model. However, we may get back conflicting data from these services and we want to prioritize different fields from different services. For example, we want to prioritize names from Gusto but emails from GSuite.

We want to create a method updateFromThirdPartyAccounts(user) which will ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment