Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 875 Bytes

onboarding-suppliers.md

File metadata and controls

26 lines (18 loc) · 875 Bytes

Onboarding Suppliers and their users

Because of the dependency on Auth0 for authentication and the way the architecture and data model is currently split, onboarding suppliers and their users is a three-step process:

  1. Add suppliers
  2. Add users to Auth0 and local database, and create memberships

1. Add suppliers to the API application

See this data migration for an example of a data migration that will add a list of new suppliers to the application. Note that it also outputs a data-structure that will be used in the next step.

2. Add users to Auth0 and local database, and create memberships

The Import::Users utility class can be used to bulk-import users:

Import::User.new('/tmp/users.csv').run

See the class file for further documentation.