Created
August 3, 2020 15:35
-
-
Save stevekrouse/bd156e06fd09f94f29d3d99e2aaa8182 to your computer and use it in GitHub Desktop.
Revisions
-
stevekrouse created this gist
Aug 3, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,8 @@ # 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 ...