Personal data and erasure¶
ObjectsGrid keeps the personal data of the people you deal with, such as customers, review authors and the users of your app, in Person objects. Personal data lives there only, so a person can be erased with one call, as GDPR Art. 17 (the right to be forgotten) requires, and nothing about them is left behind in copies.
Personal fields¶
A Person's personal fields are the ones that can identify them: the name fields, email, telephone, address,
birthDate, jobTitle and worksFor. ObjectsGrid:
- encrypts them at rest, with keys kept per person;
- never puts them in list results, events or webhooks.
GET /personsanswers the other fields, and a webhook receiver reads the Person by id when it needs more, which your access control decides on; - never writes them to logs.
The other fields (gender, knowsLanguage, memberOf, tags) and the demographics are not personal.
demographics are derived on every write: the birth year (90 and over grouped), the country, region, city and postal
area of the address, gender, languages, loyalty tiers and the month the Person was created. They stay after an
erasure, for marketing analysis. In reports, leave out groups of fewer than 10 people, so a rare combination of these
fields can't single anyone out.
Find a person¶
Personal fields can't be searched with a query. Look a person up by an exact value instead:
curl "https://apis.objectsgrid.com/persons?email=ana.pop@example.com" \
-H 'X-ObjectsGrid-AccessPoint: EU' \
-H "Authorization: Bearer $TOKEN"
email is compared case-insensitively; telephone is in E.164 form, +4930123456 (send + as %2B). The answer is
the list of matching Persons, in full.
People and user accounts¶
Every UserAccount has a Person, linked by its person field. It's created at the
user's first sign-in, with the name and email from the ID token. An email belongs to one account of your
Organization Account at most: a first sign-in with an email another account uses is refused with 409.
Most Persons never sign in, for example a guest customer or an imported contact. A Person that has the same email as a new user is never linked to their account automatically: that would let anyone who signs up with someone's address take over their data.
Orders and their customer¶
An Order's customer is pinned to the Person version that was newest when the Order was
written: its at_id is https://apis.objectsgrid.com/persons/<id>?version=<n>. Send the plain URL as at_id;
ObjectsGrid adds the version.
The Order always shows the customer as they were when they ordered, even after they move. Its billingAddress and
orderDelivery (its parcels and their addresses) are personal data too, encrypted together with that Person version.
A ReturnAction's agent is pinned the same way, and its returnDelivery, the parcel
back, is encrypted with that version too.
A Message's text is encrypted with its sender's Person key, not a version key: no
accounting needs it, so erasing the sender erases everything they wrote, and the replies they received stay. See
Wishlists, questions and messages.
Erase a person¶
curl -X POST https://apis.objectsgrid.com/persons/<id>/erasure \
-H 'X-ObjectsGrid-AccessPoint: EU' \
-H "Authorization: Bearer $TOKEN"
The answer is 200 with {"id": "<id>", "erasedAt": "<when>"}. An erasure:
- empties the personal fields in every version of the Person. The keys that encrypted them are deleted, so they can't be read back. The Person stays, with its other fields and
demographics, so references to it, such as a Review'sauthor, still work; - disables the person's UserAccount and removes its sign-in identities. A later sign-in creates a new account;
- removes the person from exact lookups, and publishes a
PersonErasedwebhook event, so your own systems can erase their copies, as the controller of the data has to.
Administrators can erase. Your ABAC policy can let others, a privacy officer for example, with the action erase.
Repeating an erasure is safe: it answers the same erasedAt. An erased Person can't be updated (409); record new
personal data in a new Person.
Access logs after an erasure¶
Access log entries record each request's account id and IP address, never the Person or its fields. An erasure leaves them in place: the person's past requests stay under an account id that no longer leads to anyone, until the entries are deleted 18 months (548 days) after each request.
What Orders keep for accounting¶
Tax law makes you keep invoice data for years, erasure or not (GDPR Art. 17(3)(b)). So an erasure keeps what Orders
need to show their customer: the name, email, telephone and address of the Person versions Orders point to, the
Orders' billingAddress and orderDelivery, and their returns' returnDelivery. Only accounts with the tag security.role = accounting can read these fields. For
everyone else, administrators included, they are hidden and listed in meta.redactedFields, and they can't be used
for marketing or analytics (Art. 18).
They are kept for customerDataRetentionYears on your Organization Account,
10 years by default, counted from the newest of those Orders. Then they are deleted too, and the Orders' customer
data reads as null. The Orders themselves are never deleted.
Legal holds¶
A Person tagged security.legal-hold = true can't be erased (409) while the data is needed to establish or defend a
legal claim (Art. 17(3)(e)). Only administrators add or remove the tag. Erase the person once the hold has ended.