What is a Profile?
A Profile is a collection of attributes that may relate to a user. A user can have multiple profiles that they choose from to use for different purposes, for example, create an account with Wyre or Coinify from a Profile.
Profiles can be standalone objects, i.e. not necessarily related to a User. When a Profile object is created, Gem generates an access token with the access permissions ascribed to it. The access token is returned to the application that creates the Profile. Profiles may be access independently of a user as long as the respective access token is included in the X-Gem-Access-Tokens header. When a relationship is established between a User and a Profile as described in the assign endpoint, the permissions baked into the Profile access token are rolled up into the User-level permissions. When the User logs in through Gem, the generated User access token will embed the new permissions related to the Profile object.
