chore: replace given and family names with first and last names (#11343)

# Which Problems Are Solved

Naming inconsistency w.r.t the usage of Given Name / Family Name instead
of First Name / Last Name

# How the Problems Are Solved

* By replacing given and family names with first and last names in UI
and docs (not in the API definitions)
* Updated translations in multiple languages to first and last names
instead of given/family names

# Additional Changes
* Add `internal/**/*.yaml` path to the nx sources input to rebuild the
binary upon changes to these files
* Fix failing unit tests in `user_notifier_legacy_test.go` by updating
`Passwordless` with `Passkey`

# Additional Context
- Closes https://github.com/zitadel/zitadel/issues/11308

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Wim Van Laer <[email protected]>
This commit is contained in:
Gayathri Vijayan
2026-01-15 10:29:48 +00:00
committed by GitHub
co-authored by Copilot Wim Van Laer
parent 2797a0bb03
commit be9d2a53eb
44 changed files with 113 additions and 105 deletions
+2 -1
View File
@@ -9,7 +9,8 @@
"{workspaceRoot}/backend/**/*.go", "{workspaceRoot}/backend/**/*.go",
"{workspaceRoot}/proto/**/*.go", "{workspaceRoot}/proto/**/*.go",
"{workspaceRoot}/pkg/**/*.go", "{workspaceRoot}/pkg/**/*.go",
"{workspaceRoot}/main.go" "{workspaceRoot}/main.go",
"{workspaceRoot}/internal/**/*.yaml"
], ],
"runtime": [ "runtime": [
"sources", "sources",
+1 -1
View File
@@ -2337,7 +2337,7 @@
"DISPLAYNAMEATTRIBUTE": "Атрибут за показвано име", "DISPLAYNAMEATTRIBUTE": "Атрибут за показвано име",
"EMAILATTRIBUTEATTRIBUTE": "Имейл атрибут", "EMAILATTRIBUTEATTRIBUTE": "Имейл атрибут",
"EMAILVERIFIEDATTRIBUTE": "Атрибут за проверен имейл", "EMAILVERIFIEDATTRIBUTE": "Атрибут за проверен имейл",
"FIRSTNAMEATTRIBUTE": "Атрибут собствено име", "FIRSTNAMEATTRIBUTE": "Атрибут име",
"LASTNAMEATTRIBUTE": "Атрибут фамилия", "LASTNAMEATTRIBUTE": "Атрибут фамилия",
"NICKNAMEATTRIBUTE": "Атрибут псевдоним", "NICKNAMEATTRIBUTE": "Атрибут псевдоним",
"PHONEATTRIBUTE": "Атрибут на телефона", "PHONEATTRIBUTE": "Атрибут на телефона",
+2 -2
View File
@@ -2325,8 +2325,8 @@
"DISPLAYNAMEATTRIBUTE": "Displayname attribute", "DISPLAYNAMEATTRIBUTE": "Displayname attribute",
"EMAILATTRIBUTEATTRIBUTE": "Email attribute", "EMAILATTRIBUTEATTRIBUTE": "Email attribute",
"EMAILVERIFIEDATTRIBUTE": "Email verified attribute", "EMAILVERIFIEDATTRIBUTE": "Email verified attribute",
"FIRSTNAMEATTRIBUTE": "Firstname attribute", "FIRSTNAMEATTRIBUTE": "Vorname-Attribut",
"LASTNAMEATTRIBUTE": "Lastname attribute", "LASTNAMEATTRIBUTE": "Nachname-Attribut",
"NICKNAMEATTRIBUTE": "Nickname attribute", "NICKNAMEATTRIBUTE": "Nickname attribute",
"PHONEATTRIBUTE": "Phone attribute", "PHONEATTRIBUTE": "Phone attribute",
"PHONEVERIFIEDATTRIBUTE": "Phone verified attribute", "PHONEVERIFIEDATTRIBUTE": "Phone verified attribute",
+6 -6
View File
@@ -971,8 +971,8 @@
"CHANGEUSERNAME": "modify", "CHANGEUSERNAME": "modify",
"CHANGEUSERNAME_TITLE": "Change username", "CHANGEUSERNAME_TITLE": "Change username",
"CHANGEUSERNAME_DESC": "Enter the new name in the field below.", "CHANGEUSERNAME_DESC": "Enter the new name in the field below.",
"FIRSTNAME": "Given Name", "FIRSTNAME": "First Name",
"LASTNAME": "Family Name", "LASTNAME": "Last Name",
"NICKNAME": "Nickname", "NICKNAME": "Nickname",
"DISPLAYNAME": "Display Name", "DISPLAYNAME": "Display Name",
"PREFERREDLOGINNAME": "Preferred login name", "PREFERREDLOGINNAME": "Preferred login name",
@@ -1864,8 +1864,8 @@
"IU": "Invite User" "IU": "Invite User"
}, },
"CHIPS": { "CHIPS": {
"firstname": "Given name", "firstname": "First name",
"lastname": "Family name", "lastname": "Last name",
"code": "Code", "code": "Code",
"preferredLoginName": "Preferred Login Name", "preferredLoginName": "Preferred Login Name",
"displayName": "Displayname", "displayName": "Displayname",
@@ -2336,8 +2336,8 @@
"DISPLAYNAMEATTRIBUTE": "Displayname attribute", "DISPLAYNAMEATTRIBUTE": "Displayname attribute",
"EMAILATTRIBUTEATTRIBUTE": "Email attribute", "EMAILATTRIBUTEATTRIBUTE": "Email attribute",
"EMAILVERIFIEDATTRIBUTE": "Email verified attribute", "EMAILVERIFIEDATTRIBUTE": "Email verified attribute",
"FIRSTNAMEATTRIBUTE": "Given name attribute", "FIRSTNAMEATTRIBUTE": "First name attribute",
"LASTNAMEATTRIBUTE": "Family name attribute", "LASTNAMEATTRIBUTE": "Last name attribute",
"NICKNAMEATTRIBUTE": "Nickname attribute", "NICKNAMEATTRIBUTE": "Nickname attribute",
"PHONEATTRIBUTE": "Phone attribute", "PHONEATTRIBUTE": "Phone attribute",
"PHONEVERIFIEDATTRIBUTE": "Phone verified attribute", "PHONEVERIFIEDATTRIBUTE": "Phone verified attribute",
+2 -2
View File
@@ -2325,8 +2325,8 @@
"DISPLAYNAMEATTRIBUTE": "Atributo Displayname", "DISPLAYNAMEATTRIBUTE": "Atributo Displayname",
"EMAILATTRIBUTEATTRIBUTE": "Atributo Email", "EMAILATTRIBUTEATTRIBUTE": "Atributo Email",
"EMAILVERIFIEDATTRIBUTE": "Atributo Email verificado", "EMAILVERIFIEDATTRIBUTE": "Atributo Email verificado",
"FIRSTNAMEATTRIBUTE": "Atributo Firstname", "FIRSTNAMEATTRIBUTE": "Atributo del nombre",
"LASTNAMEATTRIBUTE": "Atributo Lastname", "LASTNAMEATTRIBUTE": "Atributo del apellido",
"NICKNAMEATTRIBUTE": "Atributo Nickname", "NICKNAMEATTRIBUTE": "Atributo Nickname",
"PHONEATTRIBUTE": "Atributo Phone", "PHONEATTRIBUTE": "Atributo Phone",
"PHONEVERIFIEDATTRIBUTE": "Atributo phone verificado", "PHONEVERIFIEDATTRIBUTE": "Atributo phone verificado",
+4 -4
View File
@@ -971,7 +971,7 @@
"CHANGEUSERNAME_TITLE": "Modifier le nom d'utilisateur", "CHANGEUSERNAME_TITLE": "Modifier le nom d'utilisateur",
"CHANGEUSERNAME_DESC": "Entrez le nouveau nom dans le champ ci-dessous.", "CHANGEUSERNAME_DESC": "Entrez le nouveau nom dans le champ ci-dessous.",
"FIRSTNAME": "Prénom", "FIRSTNAME": "Prénom",
"LASTNAME": "Nom de famille", "LASTNAME": "Nom",
"NICKNAME": "Surnom", "NICKNAME": "Surnom",
"DISPLAYNAME": "Nom d'affichage", "DISPLAYNAME": "Nom d'affichage",
"PREFERREDLOGINNAME": "Nom de connexion préféré", "PREFERREDLOGINNAME": "Nom de connexion préféré",
@@ -1861,7 +1861,7 @@
}, },
"CHIPS": { "CHIPS": {
"firstname": "Prénom", "firstname": "Prénom",
"lastname": "Nom de famille", "lastname": "Nom",
"code": "Code", "code": "Code",
"preferredLoginName": "Nom de connexion préféré", "preferredLoginName": "Nom de connexion préféré",
"displayName": "Nom d'affichage", "displayName": "Nom d'affichage",
@@ -2329,8 +2329,8 @@
"DISPLAYNAMEATTRIBUTE": "Displayname attribute", "DISPLAYNAMEATTRIBUTE": "Displayname attribute",
"EMAILATTRIBUTEATTRIBUTE": "E-mail attribute", "EMAILATTRIBUTEATTRIBUTE": "E-mail attribute",
"EMAILVERIFIEDATTRIBUTE": "E-mail verified attribute", "EMAILVERIFIEDATTRIBUTE": "E-mail verified attribute",
"FIRSTNAMEATTRIBUTE": "Firstname attribute", "FIRSTNAMEATTRIBUTE": "Attribut du prénom",
"LASTNAMEATTRIBUTE": "Lastname attribute", "LASTNAMEATTRIBUTE": "Attribut du nom",
"NICKNAMEATTRIBUTE": "Nickname attribute", "NICKNAMEATTRIBUTE": "Nickname attribute",
"PHONEATTRIBUTE": "Phone attribute", "PHONEATTRIBUTE": "Phone attribute",
"PHONEVERIFIEDATTRIBUTE": "Phone verified attribute", "PHONEVERIFIEDATTRIBUTE": "Phone verified attribute",
+6 -6
View File
@@ -970,8 +970,8 @@
"CHANGEUSERNAME": "memodifikasi", "CHANGEUSERNAME": "memodifikasi",
"CHANGEUSERNAME_TITLE": "Ubah nama pengguna", "CHANGEUSERNAME_TITLE": "Ubah nama pengguna",
"CHANGEUSERNAME_DESC": "Masukkan nama baru pada kolom di bawah.", "CHANGEUSERNAME_DESC": "Masukkan nama baru pada kolom di bawah.",
"FIRSTNAME": "Nama Pemberian", "FIRSTNAME": "Nama depan",
"LASTNAME": "Nama keluarga", "LASTNAME": "Nama belakang",
"NICKNAME": "Nama panggilan", "NICKNAME": "Nama panggilan",
"DISPLAYNAME": "Nama Tampilan", "DISPLAYNAME": "Nama Tampilan",
"PREFERREDLOGINNAME": "Nama login pilihan", "PREFERREDLOGINNAME": "Nama login pilihan",
@@ -1858,8 +1858,8 @@
"IU": "Mengundang Pengguna" "IU": "Mengundang Pengguna"
}, },
"CHIPS": { "CHIPS": {
"firstname": "Nama yang diberikan", "firstname": "Nama depan",
"lastname": "Nama keluarga", "lastname": "Nama belakang",
"code": "Kode", "code": "Kode",
"preferredLoginName": "Nama Login Pilihan", "preferredLoginName": "Nama Login Pilihan",
"displayName": "Nama tampilan", "displayName": "Nama tampilan",
@@ -2330,8 +2330,8 @@
"DISPLAYNAMEATTRIBUTE": "Atribut nama tampilan", "DISPLAYNAMEATTRIBUTE": "Atribut nama tampilan",
"EMAILATTRIBUTEATTRIBUTE": "Atribut email", "EMAILATTRIBUTEATTRIBUTE": "Atribut email",
"EMAILVERIFIEDATTRIBUTE": "Atribut terverifikasi email", "EMAILVERIFIEDATTRIBUTE": "Atribut terverifikasi email",
"FIRSTNAMEATTRIBUTE": "Atribut nama yang diberikan", "FIRSTNAMEATTRIBUTE": "Atribut nama depan",
"LASTNAMEATTRIBUTE": "Atribut nama keluarga", "LASTNAMEATTRIBUTE": "Atribut nama belakang",
"NICKNAMEATTRIBUTE": "Atribut nama panggilan", "NICKNAMEATTRIBUTE": "Atribut nama panggilan",
"PHONEATTRIBUTE": "Atribut telepon", "PHONEATTRIBUTE": "Atribut telepon",
"PHONEVERIFIEDATTRIBUTE": "Atribut terverifikasi telepon", "PHONEVERIFIEDATTRIBUTE": "Atribut terverifikasi telepon",
+2 -2
View File
@@ -2329,8 +2329,8 @@
"DISPLAYNAMEATTRIBUTE": "Displayname attribute", "DISPLAYNAMEATTRIBUTE": "Displayname attribute",
"EMAILATTRIBUTEATTRIBUTE": "Email attribute", "EMAILATTRIBUTEATTRIBUTE": "Email attribute",
"EMAILVERIFIEDATTRIBUTE": "Email verified attribute", "EMAILVERIFIEDATTRIBUTE": "Email verified attribute",
"FIRSTNAMEATTRIBUTE": "Firstname attribute", "FIRSTNAMEATTRIBUTE": "Attributi del nome",
"LASTNAMEATTRIBUTE": "Lastname attribute", "LASTNAMEATTRIBUTE": "Attributi del cognome",
"NICKNAMEATTRIBUTE": "Nickname attribute", "NICKNAMEATTRIBUTE": "Nickname attribute",
"PHONEATTRIBUTE": "Phone attribute", "PHONEATTRIBUTE": "Phone attribute",
"PHONEVERIFIEDATTRIBUTE": "Phone verified attribute", "PHONEVERIFIEDATTRIBUTE": "Phone verified attribute",
+2 -2
View File
@@ -2332,8 +2332,8 @@
"DISPLAYNAMEATTRIBUTE": "Displayname attribute", "DISPLAYNAMEATTRIBUTE": "Displayname attribute",
"EMAILATTRIBUTEATTRIBUTE": "Email attribute", "EMAILATTRIBUTEATTRIBUTE": "Email attribute",
"EMAILVERIFIEDATTRIBUTE": "Email verified attribute", "EMAILVERIFIEDATTRIBUTE": "Email verified attribute",
"FIRSTNAMEATTRIBUTE": "Firstname attribute", "FIRSTNAMEATTRIBUTE": "名の属性",
"LASTNAMEATTRIBUTE": "Lastname attribute", "LASTNAMEATTRIBUTE": "姓の属性",
"NICKNAMEATTRIBUTE": "Nickname attribute", "NICKNAMEATTRIBUTE": "Nickname attribute",
"PHONEATTRIBUTE": "Phone attribute", "PHONEATTRIBUTE": "Phone attribute",
"PHONEVERIFIEDATTRIBUTE": "Phone verified attribute", "PHONEVERIFIEDATTRIBUTE": "Phone verified attribute",
+3 -3
View File
@@ -970,7 +970,7 @@
"CHANGEUSERNAME": "промени", "CHANGEUSERNAME": "промени",
"CHANGEUSERNAME_TITLE": "Промени корисничко име", "CHANGEUSERNAME_TITLE": "Промени корисничко име",
"CHANGEUSERNAME_DESC": "Внесете го новото име во полето подолу.", "CHANGEUSERNAME_DESC": "Внесете го новото име во полето подолу.",
"FIRSTNAME": "Име", "FIRSTNAME": "Прво име",
"LASTNAME": "Презиме", "LASTNAME": "Презиме",
"NICKNAME": "Прекар", "NICKNAME": "Прекар",
"DISPLAYNAME": "Име за приказ", "DISPLAYNAME": "Име за приказ",
@@ -1861,7 +1861,7 @@
"IU": "Покана за корисникот" "IU": "Покана за корисникот"
}, },
"CHIPS": { "CHIPS": {
"firstname": "Име", "firstname": "Прво име",
"lastname": "Презиме", "lastname": "Презиме",
"code": "Код", "code": "Код",
"preferredLoginName": "Посакувано корисничко име", "preferredLoginName": "Посакувано корисничко име",
@@ -2327,7 +2327,7 @@
"DISPLAYNAMEATTRIBUTE": "Атрибут за име за приказ", "DISPLAYNAMEATTRIBUTE": "Атрибут за име за приказ",
"EMAILATTRIBUTEATTRIBUTE": "Атрибут за е-пошта", "EMAILATTRIBUTEATTRIBUTE": "Атрибут за е-пошта",
"EMAILVERIFIEDATTRIBUTE": "Атрибут за верифицирана е-пошта", "EMAILVERIFIEDATTRIBUTE": "Атрибут за верифицирана е-пошта",
"FIRSTNAMEATTRIBUTE": "Атрибут за име", "FIRSTNAMEATTRIBUTE": "Атрибут за прво име",
"LASTNAMEATTRIBUTE": "Атрибут за презиме", "LASTNAMEATTRIBUTE": "Атрибут за презиме",
"NICKNAMEATTRIBUTE": "Атрибут за прекар", "NICKNAMEATTRIBUTE": "Атрибут за прекар",
"PHONEATTRIBUTE": "Атрибут за телефонски број", "PHONEATTRIBUTE": "Атрибут за телефонски број",
+2 -2
View File
@@ -2328,8 +2328,8 @@
"DISPLAYNAMEATTRIBUTE": "Displayname attribute", "DISPLAYNAMEATTRIBUTE": "Displayname attribute",
"EMAILATTRIBUTEATTRIBUTE": "Email attribute", "EMAILATTRIBUTEATTRIBUTE": "Email attribute",
"EMAILVERIFIEDATTRIBUTE": "Email verified attribute", "EMAILVERIFIEDATTRIBUTE": "Email verified attribute",
"FIRSTNAMEATTRIBUTE": "Firstname attribute", "FIRSTNAMEATTRIBUTE": "Atrybut imienia",
"LASTNAMEATTRIBUTE": "Lastname attribute", "LASTNAMEATTRIBUTE": "Atrybut nazwiska",
"NICKNAMEATTRIBUTE": "Nickname attribute", "NICKNAMEATTRIBUTE": "Nickname attribute",
"PHONEATTRIBUTE": "Phone attribute", "PHONEATTRIBUTE": "Phone attribute",
"PHONEVERIFIEDATTRIBUTE": "Phone verified attribute", "PHONEVERIFIEDATTRIBUTE": "Phone verified attribute",
+2 -2
View File
@@ -2335,8 +2335,8 @@
"DISPLAYNAMEATTRIBUTE": "Görünen ad özniteliği", "DISPLAYNAMEATTRIBUTE": "Görünen ad özniteliği",
"EMAILATTRIBUTEATTRIBUTE": "E-posta özniteliği", "EMAILATTRIBUTEATTRIBUTE": "E-posta özniteliği",
"EMAILVERIFIEDATTRIBUTE": "E-posta doğrulandı özniteliği", "EMAILVERIFIEDATTRIBUTE": "E-posta doğrulandı özniteliği",
"FIRSTNAMEATTRIBUTE": "Ad özniteliği", "FIRSTNAMEATTRIBUTE": "Ad özelliği",
"LASTNAMEATTRIBUTE": "Soyad özniteliği", "LASTNAMEATTRIBUTE": "Soyad özelliği",
"NICKNAMEATTRIBUTE": "Takma ad özniteliği", "NICKNAMEATTRIBUTE": "Takma ad özniteliği",
"PHONEATTRIBUTE": "Telefon özniteliği", "PHONEATTRIBUTE": "Telefon özniteliği",
"PHONEVERIFIEDATTRIBUTE": "Telefon doğrulandı özniteliği", "PHONEVERIFIEDATTRIBUTE": "Telefon doğrulandı özniteliği",
+5 -5
View File
@@ -971,7 +971,7 @@
"CHANGEUSERNAME_TITLE": "修改用户名称", "CHANGEUSERNAME_TITLE": "修改用户名称",
"CHANGEUSERNAME_DESC": "在下面的字段中输入新名称。", "CHANGEUSERNAME_DESC": "在下面的字段中输入新名称。",
"FIRSTNAME": "名字", "FIRSTNAME": "名字",
"LASTNAME": "姓", "LASTNAME": "姓氏",
"NICKNAME": "昵称", "NICKNAME": "昵称",
"DISPLAYNAME": "展示名称", "DISPLAYNAME": "展示名称",
"PREFERREDLOGINNAME": "首选登录名", "PREFERREDLOGINNAME": "首选登录名",
@@ -1863,8 +1863,8 @@
"IU": "邀请用户" "IU": "邀请用户"
}, },
"CHIPS": { "CHIPS": {
"firstname": "名", "firstname": "名字",
"lastname": "姓", "lastname": "姓氏",
"code": "Code", "code": "Code",
"preferredLoginName": "首选登录名", "preferredLoginName": "首选登录名",
"displayName": "展示名称", "displayName": "展示名称",
@@ -2340,8 +2340,8 @@
"DISPLAYNAMEATTRIBUTE": "Displayname attribute", "DISPLAYNAMEATTRIBUTE": "Displayname attribute",
"EMAILATTRIBUTEATTRIBUTE": "Email attribute", "EMAILATTRIBUTEATTRIBUTE": "Email attribute",
"EMAILVERIFIEDATTRIBUTE": "Email verified attribute", "EMAILVERIFIEDATTRIBUTE": "Email verified attribute",
"FIRSTNAMEATTRIBUTE": "Firstname attribute", "FIRSTNAMEATTRIBUTE": "姓名属性",
"LASTNAMEATTRIBUTE": "Lastname attribute", "LASTNAMEATTRIBUTE": "姓氏属性",
"NICKNAMEATTRIBUTE": "Nickname attribute", "NICKNAMEATTRIBUTE": "Nickname attribute",
"PHONEATTRIBUTE": "Phone attribute", "PHONEATTRIBUTE": "Phone attribute",
"PHONEVERIFIEDATTRIBUTE": "Phone verified attribute", "PHONEVERIFIEDATTRIBUTE": "Phone verified attribute",
@@ -44,9 +44,9 @@ The first parameter contains the following fields
- `appendMetadata(string, Any)` - `appendMetadata(string, Any)`
The first parameter represents the key and the second a value which will be stored The first parameter represents the key and the second a value which will be stored
- `setFirstName(string)` - `setFirstName(string)`
Sets the given name Sets the first name
- `setLastName(string)` - `setLastName(string)`
Sets the family name Sets the last name
- `setNickName(string)` - `setNickName(string)`
Sets the nickname Sets the nickname
- `setDisplayName(string)` - `setDisplayName(string)`
@@ -87,9 +87,9 @@ The trigger is represented by the following Ids in the API: `TRIGGER_TYPE_PRE_CR
- `metadata` - `metadata`
Array of [*metadata*](./objects#metadata-with-value-as-bytes). This function is deprecated, please use `api.v1.user.appendMetadata` Array of [*metadata*](./objects#metadata-with-value-as-bytes). This function is deprecated, please use `api.v1.user.appendMetadata`
- `setFirstName(string)` - `setFirstName(string)`
Sets the given name Sets the first name
- `setLastName(string)` - `setLastName(string)`
Sets the family name Sets the last name
- `setNickName(string)` - `setNickName(string)`
Sets the nick name Sets the nick name
- `setDisplayName(string)` - `setDisplayName(string)`
+2 -2
View File
@@ -57,9 +57,9 @@ Please check below the matrix for an overview where which scope is asserted.
| email_verified | `true` | Boolean if the email was verified by ZITADEL | | email_verified | `true` | Boolean if the email was verified by ZITADEL |
| events | `{ "http://schemas.openid.net/event/backchannel-logout": {} }` | Security Events such as Back-Channel Logout | | events | `{ "http://schemas.openid.net/event/backchannel-logout": {} }` | Security Events such as Back-Channel Logout |
| exp | `1311281970` | Time the token expires (as unix time) | | exp | `1311281970` | Time the token expires (as unix time) |
| family_name | `Runner` | The subjects family name | | family_name | `Runner` | Last name of the subject |
| gender | `other` | Gender of the subject | | gender | `other` | Gender of the subject |
| given_name | `Road` | Given name of the subject | | given_name | `Road` | First name of the subject |
| iat | `1311280970` | Time of the token was issued at (as unix time) | | iat | `1311280970` | Time of the token was issued at (as unix time) |
| iss | `$CUSTOM-DOMAIN` | Issuing domain of a token | | iss | `$CUSTOM-DOMAIN` | Issuing domain of a token |
| jti | `69234237813329048` | Unique id of the token | | jti | `69234237813329048` | Unique id of the token |
@@ -53,7 +53,7 @@ To allow ZITADEL to get the information from the authenticating user you have to
1. Click on Token configuration in the side menu 1. Click on Token configuration in the side menu
2. Click on "+ Add optional claim" 2. Click on "+ Add optional claim"
3. Add email, family_name, given_name and preferred_username to the id token 3. Add email, family_name (last name of the user), given_name (first name of the user) and preferred_username to the id token
![Azure Token configuration](/img/guides/azure_token_configuration.png) ![Azure Token configuration](/img/guides/azure_token_configuration.png)
@@ -129,8 +129,8 @@ To provision users correctly in ZITADEL, configure which attributes OneLogin sen
3. Add or edit parameters so that at least the following are sent and **included in the SAML assertion**: 3. Add or edit parameters so that at least the following are sent and **included in the SAML assertion**:
- `email` → mapped to the user’s email address (for example **Email**). - `email` → mapped to the user’s email address (for example **Email**).
- `firstName` → mapped to the user’s given name (for example **First Name**). - `firstName` → mapped to the user’s first name (for example **First Name**).
- `lastName` → mapped to the user’s family name (for example **Last Name**). - `lastName` → mapped to the user’s last name (for example **Last Name**).
4. Ensure the **NameID** is set to a unique identifier (commonly the user’s email address), if your OneLogin connector requires it. 4. Ensure the **NameID** is set to a unique identifier (commonly the user’s email address), if your OneLogin connector requires it.
5. Save your changes. 5. Save your changes.
@@ -39,7 +39,7 @@ After the ZITADEL SAML provider exists, we’ll return to PingFederate and finis
2. Make sure **SAML 2.0** Browser SSO is enabled for this connection. 2. Make sure **SAML 2.0** Browser SSO is enabled for this connection.
3. Proceed to **Assertion Creation**: 3. Proceed to **Assertion Creation**:
- Keep the default **NameID** attribute. - Keep the default **NameID** attribute.
- Add additional attributes you want to send to ZITADEL (you need at least `email`, `given_name`, `family_name`, and you can send optional attributes like `display_name`). - Add additional attributes you want to send to ZITADEL (you need at least `email`, `given_name` (first name of the user), `family_name` (last name of the user), and you can send optional attributes like `display_name`).
4. In **Attribute Mapping**, map the contract attributes to your directory/user store fields. 4. In **Attribute Mapping**, map the contract attributes to your directory/user store fields.
### Export PingFederate IdP metadata ### Export PingFederate IdP metadata
@@ -87,7 +87,7 @@ urn:zitadel:iam:org:id:{id}
``` ```
If the user chooses to register a local account, the register form will be shown. If the user chooses to register a local account, the register form will be shown.
All the mandatory fields like given name, family name, e-mail and password have to be filled. All the mandatory fields like first name, last name, e-mail and password have to be filled.
You can only setup authentication with the built-in form. You can only setup authentication with the built-in form.
<img <img
@@ -10,8 +10,8 @@ By defining multiple schemas, you can even differentiate between different perso
and restrictions, resp. requirements for them to authenticate. and restrictions, resp. requirements for them to authenticate.
For example, you could have separate schemas for your employees and your customers. While you might want to make sure that For example, you could have separate schemas for your employees and your customers. While you might want to make sure that
certain data like given name and family name are required for employees, they might be optional for the latter. certain data, such as the first name and the last name, are required for employees, they might be optional for the latter.
Or you might want to disable username password authentication for your admins and only allow phishing resistant methods like passkeys, Or you might want to disable username-password authentication for your admins and only allow phishing-resistant methods (e.g., passkeys),
but still allow it for your customers. but still allow it for your customers.
:::info :::info
@@ -23,11 +23,11 @@ Do not use it for production yet. To test it out, you need to enable the `UserSc
## Create your first schema ## Create your first schema
Let's create the first very simple schema `user`, which defines a `givenName` and `familyName` for a user and allows them to Let's create your first schema, `user`, which defines a `givenName` (first name) and `familyName` (last name) for a user and allows them to
authenticate with username and password. authenticate with their username and password.
We can do so by calling the [create user schema endpoint](/docs/apis/resources/user_schema_service_v3/user-schema-service-create-user-schema) We can do so by calling the [create user schema endpoint](/docs/apis/resources/user_schema_service_v3/user-schema-service-create-user-schema)
with the following data. Make sure to provide an access_token with an IAM_OWNER role. with the following data. Make sure to provide an `access_token` with an `IAM_OWNER` role.
```bash ```bash
curl -X POST "https://$CUSTOM-DOMAIN/v3alpha/user_schemas" \ curl -X POST "https://$CUSTOM-DOMAIN/v3alpha/user_schemas" \
@@ -67,18 +67,18 @@ This will return something similar to:
} }
``` ```
So you successfully create a schema and could use that to manage your users based on that. You have now successfully created a schema, which can be used to manage your users.
But let's first checkout some possibilities ZITADEL offers. But let's first check out some possibilities ZITADEL offers.
## Assign Permissions ## Assign Permissions
In the first step we've created a very simple `user` schema with only `givenName` and `familyName`. In the first step we created a very simple `user` schema with only `givenName` (first name) and `familyName` (last name).
This allows any user with the permission to edit the user's data to change these values. This allows any user with permissions to edit the user's data to change these values.
Let's now update the schema and add some more properties and restrict who's able to retrieve and change data. Let's now update the schema to add some more properties and restrict who's able to retrieve and change data.
By setting `urn:zitadel:schema:permission` to fields, we can define the permissions for that field of different user roles / context. By setting `urn:zitadel:schema:permission` to fields, we can define the permissions for that field of different user roles / context.
For example by adding it to the `givenName` and `familyName` we can keep the state from before, where any `owner` (e.g. ORG_OWNER) For example, by adding it to the `givenName` and `familyName` we can keep the state from before, where any `owner` (e.g. ORG_OWNER)
as well as the user themselves (`self`) are allowed to read (`r`) and write (`w`) the data. as well as the user themselves (`self`) are allowed to read (`r`) and write (`w`) the data.
Let's now assume our service provides some profile information of the user on a dedicated page. Let's now assume our service provides some profile information of the user on a dedicated page.
@@ -136,9 +136,9 @@ curl -X PUT "https://$CUSTOM-DOMAIN/v3alpha/user_schemas/$SCHEMA_ID" \
## Retrieve the Existing Schemas ## Retrieve the Existing Schemas
To check the state of existing schemas you can simply [list them](/apis/resources/user_schema_service_v3/user-schema-service-list-user-schemas). To check the state of existing schemas, you can simply [list them](/apis/resources/user_schema_service_v3/user-schema-service-list-user-schemas).
In this case we will query for the one with state `active`. Check out the api documentation for detailed information on possible filters. In this case we will query for the one with state `active`. Check out the api documentation for detailed information on possible filters.
The API also allows to retrieve a single [schema by ID](/apis/resources/user_schema_service_v3/user-schema-service-get-user-schema-by-id). The API also allows retrieving a single [schema by ID](/apis/resources/user_schema_service_v3/user-schema-service-get-user-schema-by-id).
```bash ```bash
curl -X POST "https://$CUSTOM-DOMAIN/v3alpha/user_schemas/search" \ curl -X POST "https://$CUSTOM-DOMAIN/v3alpha/user_schemas/search" \
@@ -162,7 +162,7 @@ curl -X POST "https://$CUSTOM-DOMAIN/v3alpha/user_schemas/search" \
}' }'
``` ```
If you've followed this guide, it should list you a singe schema: If you've followed this guide, it should list you a single schema:
```json ```json
{ {
@@ -226,6 +226,5 @@ If you've followed this guide, it should list you a singe schema:
### Revision ### Revision
Note the `revision` property, which is currently `2`. Each update to the `schema`-property will increase Note the `revision` property, which is currently `2`. Each update to the `schema`-property will increment
it by `1`. The revision will later be reflected on the managed users to state based on which revision of the schema it by `1`. This revision number will be stored on managed users to indicate which schema version was used for their last update.
they were last updated on.
+1 -1
View File
@@ -8,7 +8,7 @@
<td><strong>Basic data</strong></td> <td><strong>Basic data</strong></td>
<td> <td>
<ul> <ul>
<li>Family and given name</li> <li>First and last names</li>
<li>Email addresses</li> <li>Email addresses</li>
<li>User name</li> <li>User name</li>
</ul> </ul>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 121 KiB

@@ -465,7 +465,7 @@ func TestBulk(t *testing.T) {
"urn:ietf:params:scim:api:zitadel:messages:2.0:ErrorDetail", "urn:ietf:params:scim:api:zitadel:messages:2.0:ErrorDetail",
}, },
ScimType: "invalidValue", ScimType: "invalidValue",
Detail: "Given name in profile is empty", Detail: "First name in profile is empty",
Status: "400", Status: "400",
ZitadelDetail: &scim.ZitadelErrorDetail{ ZitadelDetail: &scim.ZitadelErrorDetail{
ID: "USER-UCej2", ID: "USER-UCej2",
+1 -1
View File
@@ -431,7 +431,7 @@ Errors:
NotFound: Профилът не е намерен NotFound: Профилът не е намерен
NotChanged: Профилът не е променен NotChanged: Профилът не е променен
Empty: Профилът е празен Empty: Профилът е празен
FirstNameEmpty: Първото име в профила е празно FirstNameEmpty: Името в профила е празно
LastNameEmpty: Фамилията в профила е празна LastNameEmpty: Фамилията в профила е празна
IDMissing: Липсва ID на потребителския профил IDMissing: Липсва ID на потребителския профил
Email: Email:
+8 -8
View File
@@ -244,8 +244,8 @@ RegistrationUser:
DescriptionOrgRegister: Enter your Userdata. DescriptionOrgRegister: Enter your Userdata.
EmailLabel: E-Mail EmailLabel: E-Mail
UsernameLabel: Username UsernameLabel: Username
FirstnameLabel: Given name FirstnameLabel: First name
LastnameLabel: Family name LastnameLabel: Last name
LanguageLabel: Language LanguageLabel: Language
German: Deutsch German: Deutsch
English: English English: English
@@ -288,8 +288,8 @@ ExternalRegistrationUserOverview:
Description: We have taken your user details from the selected provider. You may now change or complete them. Description: We have taken your user details from the selected provider. You may now change or complete them.
EmailLabel: E-Mail EmailLabel: E-Mail
UsernameLabel: Username UsernameLabel: Username
FirstnameLabel: Given name FirstnameLabel: First name
LastnameLabel: Family name LastnameLabel: Last name
NicknameLabel: Nickname NicknameLabel: Nickname
PhoneLabel: Phone number PhoneLabel: Phone number
LanguageLabel: Language LanguageLabel: Language
@@ -329,8 +329,8 @@ RegistrationOrg:
OrgNameLabel: Organization name OrgNameLabel: Organization name
EmailLabel: E-Mail EmailLabel: E-Mail
UsernameLabel: Username UsernameLabel: Username
FirstnameLabel: Given name FirstnameLabel: First name
LastnameLabel: Family name LastnameLabel: Last name
PasswordLabel: Password PasswordLabel: Password
PasswordConfirmLabel: Password confirmation PasswordConfirmLabel: Password confirmation
TosAndPrivacyLabel: Terms and conditions TosAndPrivacyLabel: Terms and conditions
@@ -445,8 +445,8 @@ Errors:
NotFound: Profile not found NotFound: Profile not found
NotChanged: Profile not changed NotChanged: Profile not changed
Empty: Profile is empty Empty: Profile is empty
FirstNameEmpty: Given name in profile is empty FirstNameEmpty: First name in profile is empty
LastNameEmpty: Family name in profile is empty LastNameEmpty: Last name in profile is empty
IDMissing: Profile ID is missing IDMissing: Profile ID is missing
Email: Email:
NotFound: Email not found NotFound: Email not found
+2 -2
View File
@@ -428,8 +428,8 @@ Errors:
NotFound: Perfil no encontrado NotFound: Perfil no encontrado
NotChanged: El perfil no ha cambiado NotChanged: El perfil no ha cambiado
Empty: El perfil está vacío Empty: El perfil está vacío
FirstNameEmpty: El nombre del perfil está vacío FirstNameEmpty: El nombre en el perfil está vacío
LastNameEmpty: Los apellidos del perfil están vacíos LastNameEmpty: El apellido en el perfil está vacío
IDMissing: Falta el ID del perfil IDMissing: Falta el ID del perfil
Email: Email:
NotFound: Email no encontrado NotFound: Email no encontrado
+2 -2
View File
@@ -405,8 +405,8 @@ Errors:
NotFound: Profil nem található NotFound: Profil nem található
NotChanged: Profil nem változott NotChanged: Profil nem változott
Empty: Profil üres Empty: Profil üres
FirstNameEmpty: A profilban a keresztnév üres FirstNameEmpty: A profilban az első név mező üres
LastNameEmpty: A profilban a vezetéknév üres LastNameEmpty: A profilban a vezetéknév mező üres
IDMissing: Hiányzik a profil azonosító IDMissing: Hiányzik a profil azonosító
Email: Email:
NotFound: Email nem található NotFound: Email nem található
+1 -1
View File
@@ -406,7 +406,7 @@ Errors:
NotChanged: Profil tidak berubah NotChanged: Profil tidak berubah
Empty: Profil kosong Empty: Profil kosong
FirstNameEmpty: Nama depan di profil kosong FirstNameEmpty: Nama depan di profil kosong
LastNameEmpty: Nama keluarga di profil kosong LastNameEmpty: Nama belakang di profil kosong
IDMissing: ID Profil tidak ada IDMissing: ID Profil tidak ada
Email: Email:
NotFound: Email tidak ditemukan NotFound: Email tidak ditemukan
+2 -2
View File
@@ -446,8 +446,8 @@ Errors:
NotFound: プロファイルが見つかりません NotFound: プロファイルが見つかりません
NotChanged: プロファイルが変更されていません NotChanged: プロファイルが変更されていません
Empty: プロファイルが空です Empty: プロファイルが空です
FirstNameEmpty: 名前が空です FirstNameEmpty: プロフィールでは名欄が空白です。
LastNameEmpty: 姓が空です LastNameEmpty: プロフィールでは姓欄が空白です。
IDMissing: プロファイルIDが不足しています IDMissing: プロファイルIDが不足しています
Email: Email:
NotFound: メールアドレスが見つかりません NotFound: メールアドレスが見つかりません
+2 -2
View File
@@ -445,8 +445,8 @@ Errors:
NotFound: 프로필을 찾을 수 없습니다 NotFound: 프로필을 찾을 수 없습니다
NotChanged: 프로필이 변경되지 않았습니다 NotChanged: 프로필이 변경되지 않았습니다
Empty: 프로필이 비어 있습니다 Empty: 프로필이 비어 있습니다
FirstNameEmpty: 프로필에 이름이 비어 있습니다 FirstNameEmpty: 프로필의 이름 필드가 비어 있습니다
LastNameEmpty: 프로필에 성이 비어 있습니다 LastNameEmpty: 프로필의 성 필드가 비어 있습니다
IDMissing: 프로필 ID가 없습니다 IDMissing: 프로필 ID가 없습니다
Email: Email:
NotFound: 이메일을 찾을 수 없습니다 NotFound: 이메일을 찾을 수 없습니다
+2 -2
View File
@@ -446,8 +446,8 @@ Errors:
NotFound: Профилот не е пронајден NotFound: Профилот не е пронајден
NotChanged: Профилот не е променет NotChanged: Профилот не е променет
Empty: Профилот е празен Empty: Профилот е празен
FirstNameEmpty: Името во профилот е празно FirstNameEmpty: Полето за име на профилот е празно
LastNameEmpty: Презимето во профилот е празно LastNameEmpty: Полето за презиме на профилот е празно
IDMissing: ID на профил е празно IDMissing: ID на профил е празно
Email: Email:
NotFound: Е-поштата не е пронајдена NotFound: Е-поштата не е пронајдена
+2 -2
View File
@@ -446,8 +446,8 @@ Errors:
NotFound: Профиль не найден NotFound: Профиль не найден
NotChanged: Профиль не изменен NotChanged: Профиль не изменен
Empty: Профиль пуст Empty: Профиль пуст
FirstNameEmpty: Поле имени пусто FirstNameEmpty: Имя в профиле пустое
LastNameEmpty: Поле фамилии пусто LastNameEmpty: Фамилия в профиле пустая
IDMissing: Отсутствует идентификатор профиля IDMissing: Отсутствует идентификатор профиля
Email: Email:
NotFound: Электронная почта не найдена NotFound: Электронная почта не найдена
+2 -2
View File
@@ -445,8 +445,8 @@ Errors:
NotFound: Profilen finns inte NotFound: Profilen finns inte
NotChanged: Profilen har inte ändrats NotChanged: Profilen har inte ändrats
Empty: Profilen saknar innehåll Empty: Profilen saknar innehåll
FirstNameEmpty: Förnamnet i profilen är tomt FirstNameEmpty: Förnamn i profilen är tomt
LastNameEmpty: Efternamnet i profilen är tomt LastNameEmpty: Efternamn i profilen är tomt
IDMissing: Profile ID saknas IDMissing: Profile ID saknas
E-Post: E-Post:
NotFound: E-Post finns inte NotFound: E-Post finns inte
+2 -2
View File
@@ -445,8 +445,8 @@ Errors:
NotFound: Profil bulunamadı NotFound: Profil bulunamadı
NotChanged: Profil değişmedi NotChanged: Profil değişmedi
Empty: Profil boş Empty: Profil boş
FirstNameEmpty: Profildeki ad boş FirstNameEmpty: Profildeki ad alanı boş
LastNameEmpty: Profildeki soyadı boş LastNameEmpty: Profildeki soyad alanı boş
IDMissing: Profil ID'si eksik IDMissing: Profil ID'si eksik
Email: Email:
NotFound: E-posta bulunamadı NotFound: E-posta bulunamadı
+2 -2
View File
@@ -445,8 +445,8 @@ Errors:
NotFound: 未找到个人资料 NotFound: 未找到个人资料
NotChanged: 个人资料未更改 NotChanged: 个人资料未更改
Empty: 简介是空的 Empty: 简介是空的
FirstNameEmpty: 简介中的名字是空的 FirstNameEmpty: 个人资料中的名字为空
LastNameEmpty: 简介中的姓氏是空的 LastNameEmpty: 个人资料中的姓氏为空
IDMissing: 简介ID丢失 IDMissing: 简介ID丢失
Email: Email:
NotFound: 电子邮件没有找到 NotFound: 电子邮件没有找到
@@ -1091,7 +1091,7 @@ func Test_userNotifierLegacy_reduceDomainClaimed(t *testing.T) {
} }
func Test_userNotifierLegacy_reducePasswordlessCodeRequested(t *testing.T) { func Test_userNotifierLegacy_reducePasswordlessCodeRequested(t *testing.T) {
expectMailSubject := "Add Passwordless Login" expectMailSubject := "Add Passkey Login"
tests := []struct { tests := []struct {
name string name string
test func(*gomock.Controller, *mock.MockQueries, *mock.MockCommands) (fields, args, wantLegacy) test func(*gomock.Controller, *mock.MockQueries, *mock.MockCommands) (fields, args, wantLegacy)
+2 -2
View File
@@ -101,8 +101,8 @@ Errors:
NotFound: Profile not found NotFound: Profile not found
NotChanged: Profile not changed NotChanged: Profile not changed
Empty: Profile is empty Empty: Profile is empty
FirstNameEmpty: Given name in profile is empty FirstNameEmpty: First name in profile is empty
LastNameEmpty: Family name in profile is empty LastNameEmpty: Last name in profile is empty
IDMissing: Profile ID is missing IDMissing: Profile ID is missing
Email: Email:
NotFound: Email not found NotFound: Email not found
+2 -2
View File
@@ -364,7 +364,7 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Profile"; tags: "User Profile";
summary: "Get My Profile"; summary: "Get My Profile";
description: "Returns the profile information of the authenticated user, this includes given name, family name, etc." description: "Returns the profile information of the authenticated user, this includes first name, last name, etc."
}; };
} }
@@ -381,7 +381,7 @@ service AuthService {
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
tags: "User Profile"; tags: "User Profile";
summary: "Update My Profile"; summary: "Update My Profile";
description: "Change the profile information of the authenticated user. This includes information like given name, family name, language, etc." description: "Change the profile information of the authenticated user. This includes information like first name, last name, language, etc."
}; };
} }
@@ -175,7 +175,7 @@ service InstanceService {
// //
// Deprecated: please move to the corresponding endpoint under instance service v2. This endpoint will be removed with the next major version of ZITADEL. // Deprecated: please move to the corresponding endpoint under instance service v2. This endpoint will be removed with the next major version of ZITADEL.
// //
// Updates instance in context with the given name. // Updates instance in context with the provided name.
// //
// The instance_id in the input message will be used in the future. // The instance_id in the input message will be used in the future.
// //
@@ -47,7 +47,7 @@ message User {
string preferred_login_name = 2; string preferred_login_name = 2;
// DisplayName is the public display name of the user. // DisplayName is the public display name of the user.
// By default it's the user's given name and family name, their username or their email address. // By default it's the user's first name and last name, their username or their email address.
string display_name = 3; string display_name = 3;
// The organization the user belong to. // The organization the user belong to.
@@ -37,7 +37,7 @@ message User {
// PreferredLoginName is the preferred login name of the user. This value is unique across the whole instance. // PreferredLoginName is the preferred login name of the user. This value is unique across the whole instance.
string preferred_login_name = 2; string preferred_login_name = 2;
// DisplayName is the public display name of the user. // DisplayName is the public display name of the user.
// By default it's the user's given name and family name, their username or their email address. // By default it's the user's first name and last name, their username or their email address.
string display_name = 3; string display_name = 3;
// The organization the user belong to. // The organization the user belong to.
string organization_id = 4; string organization_id = 4;
+1 -1
View File
@@ -2285,7 +2285,7 @@ service ManagementService {
// //
// Deprecated: use [organization service v2 CreateOrganization](apis/resources/org_service_v2/zitadel-org-v-2-organization-service-add-organization.api.mdx) instead // Deprecated: use [organization service v2 CreateOrganization](apis/resources/org_service_v2/zitadel-org-v-2-organization-service-add-organization.api.mdx) instead
// //
// Create a new organization. Based on the given name a domain will be generated to be able to identify users within an organization. // Create a new organization. Based on the provided name a domain will be generated to be able to identify users within an organization.
rpc AddOrg(AddOrgRequest) returns (AddOrgResponse) { rpc AddOrg(AddOrgRequest) returns (AddOrgResponse) {
option (google.api.http) = { option (google.api.http) = {
post: "/orgs" post: "/orgs"
+4
View File
@@ -20,6 +20,7 @@ enum Gender {
} }
message SetHumanProfile { message SetHumanProfile {
// The given name is the first name of the user
string given_name = 1 [ string given_name = 1 [
(validate.rules).string = {min_len: 1, max_len: 200}, (validate.rules).string = {min_len: 1, max_len: 200},
(google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = REQUIRED,
@@ -29,6 +30,7 @@ message SetHumanProfile {
example: "\"Minnie\""; example: "\"Minnie\"";
} }
]; ];
// The family name is the last name of the user
string family_name = 2 [ string family_name = 2 [
(validate.rules).string = {min_len: 1, max_len: 200}, (validate.rules).string = {min_len: 1, max_len: 200},
(google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = REQUIRED,
@@ -67,6 +69,7 @@ message SetHumanProfile {
} }
message HumanProfile { message HumanProfile {
// The given name is the first name of the user
string given_name = 1 [ string given_name = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
min_length: 1; min_length: 1;
@@ -74,6 +77,7 @@ message HumanProfile {
example: "\"Minnie\""; example: "\"Minnie\"";
} }
]; ];
// The family name is the last name of the user
string family_name = 2 [ string family_name = 2 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
min_length: 1; min_length: 1;
+4
View File
@@ -20,6 +20,7 @@ enum Gender {
} }
message SetHumanProfile { message SetHumanProfile {
// The given name is the first name of the user
string given_name = 1 [ string given_name = 1 [
(validate.rules).string = {min_len: 1, max_len: 200}, (validate.rules).string = {min_len: 1, max_len: 200},
(google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = REQUIRED,
@@ -29,6 +30,7 @@ message SetHumanProfile {
example: "\"Minnie\""; example: "\"Minnie\"";
} }
]; ];
// The family name is the last name of the user
string family_name = 2 [ string family_name = 2 [
(validate.rules).string = {min_len: 1, max_len: 200}, (validate.rules).string = {min_len: 1, max_len: 200},
(google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = REQUIRED,
@@ -67,6 +69,7 @@ message SetHumanProfile {
} }
message HumanProfile { message HumanProfile {
// The given name is the first name of the user
string given_name = 1 [ string given_name = 1 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
min_length: 1; min_length: 1;
@@ -74,6 +77,7 @@ message HumanProfile {
example: "\"Minnie\""; example: "\"Minnie\"";
} }
]; ];
// The family name is the last name of the user
string family_name = 2 [ string family_name = 2 [
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
min_length: 1; min_length: 1;