Organization profiles
The profile your organization keeps of each person, its built-in, shared and private fields, who may read and write each field, and the hosted account page where people manage it.
Your organization keeps one profile of each person who uses its applications. It is created the first time the person authorizes one of your applications, and it holds your organization's view of them: a display name, a first, middle and last name, a nickname, a website, a picture and a banner, a gender, a date of birth, a language, a username of its own, and the fields you add. Another organization's profile of the same person is separate, and neither reads the other.
Every application of your organization reads the same profile, through the scopes the person granted it and the settings below.
Built-in fields
On the organization's Profiles → Fields tab, each built-in field is hidden, optional or required. A required field the person has not filled in is asked after consent, the next time they authorize one of your applications. A picture is never required, and the banner is hidden until you show it.
Shared and private fields
You can add fields of your own, of the same types as sign-up questions. They come in two kinds:
| Kind | Belongs to | Who reads and writes it |
|---|---|---|
| Shared field | Your organization, on every person's profile | The applications you give access to |
| Private field | One application: its sign-up questions | That application only |
A shared field is added on Profiles → Fields. How many you can add depends on your
organization's plan (max_custom_profile_fields, three on Free); see
Plans and limits. For each shared field you choose:
- Which applications read it and which may write it. A new shared field can be read by every application and written by none. Writing includes reading.
- Whether the person sees it. A field hidden from the person is still on their profile for your applications. A required field is always one the person sees.
- Whether the person can change it. If not, they see it and cannot edit it.
A field's key is unique across your organization's shared fields and every application's sign-up questions, and neither the key nor the type can change after the field is created.
When an application moves to another organization, each person who uses it gets a profile in the new organization, made from their account. The application's private fields and their values move with it; the previous organization's shared and built-in values stay there. A private field whose key the new organization already uses blocks the move until it is renamed.
An application can narrow what it uses on its own Profiles tab: hide built-in fields, shared fields, sections and its hosted account page. It can only hide what your organization shows, never show what it hides.
Read and write a profile
| From | How | Reads | Writes |
|---|---|---|---|
| Your application, for the person | An access token, /api/v1/userinfo/profile/ | With profile; date of birth and language need profile:edit | With profile:edit |
| Your application's server | An API key, /api/v1/manage/users/{user_id}/profile-fields/ | With profile_fields:read, what the person's consent lets you read | With profile_fields:write, when the person granted profile:edit |
Shared field values are under fields and your application's own under private_fields,
both by key. Your server reads and writes your application's own fields without a consent
scope. A field your application does not read is answered with profile_field_not_found,
and one it reads and may not write with profile_field_read_only. The username is never
written this way.
A value is checked only when it changes. If you narrow a field after people answered it, say by removing a choice, the answers already given stay until somebody changes them, and sending a value back unchanged is not a change.
When a field your application can read changes, you receive
profile.updated, naming the fields that changed.
Retire a field and delete its answers
Removing a field retires it. It leaves every form and every response, and the answers stay; you can restore it later. To delete a retired field's answers for good, delete them from the retired list on the Fields tab. You confirm it is you first, and the deletion cannot be undone. The key stays taken.
Changes and editing
Each person's page on the Users tab has a Profile tab and a Changes tab. Changes lists every change to the profile, with the value before and after and who made it: the person, an application, an administrator or onefold. Anyone who can view users reads both.
A member whose role allows editing a person's organization profile edits it from the Profile tab, pictures included. The person sees that your organization changed it, and which fields, in their own activity.
The hosted account page
The hosted account page is where a person manages their profile with your organization: their fields, what happened between them and your applications, their connections, their sessions and devices, and their security. It wears your application's branding.
| Where | Address |
|---|---|
| onefold's own host | https://onefold.eitozx.com/oauth/account/profile?client_id=… |
| Your custom domain | https://auth.example.com/account/profile, at the path you choose |
The page is on unless your organization turns it off on Profiles → Hosted page, or an application turns off its own. Your application's private fields are on its page while the person has authorized your application. The organization chooses which sections people see, on Profiles → Sections.
People can open the page from their own profile on onefold. On your custom domain they continue without signing in again when your security policy accepts how they signed in.
User metadata
Store a small JSON document about each user of your application in onefold, with PUT and PATCH semantics, limits and key rules, and where your own database fits.
Account lifecycle
What happens to your application's grants, tokens and data when a user's email address is changed by onefold staff, they reset their password, remove your application, or their account is disabled and restored.