# Feature OP-14880 - OIDC handling on missing family_name and given_name profile claim

Project: OpenProject
Status: new
URL: https://community.openproject.org/work_packages/OP-14880

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | Wish List |
| Sprint |  |
| Backlog bucket |  |
| Votes | 1 |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

_No work packages_

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Feature Lead |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

### Enviroment

*   All-in-one official docker
    
*   Authelia OIDC provider
    

### What is the buggy behavior?

The used Authelia OIDC does not provide family\_name and given\_name in the profile claim. Now two problems do appear:

##### OpenProject uses _name_ for the _First name_ and a blank entry in _Last name_

  

_<img class="op-uc-image op-uc-image_inline" src="https://community.openproject.org/api/v3/attachments/100077/content">_

Both entries can be overwritten by the user, but it would be preferable if nothing would be filled out or at least the name would be split at the last space character, which will probably does not always work.

For the first login by the newly created user everything is correct in the profile.

<img class="op-uc-image op-uc-image_inline" src="https://community.openproject.org/api/v3/attachments/100080/content">

#### OpenProject overwrites user edited first/last name

After every following login the user edited First/Last name is overwritten.

<img class="op-uc-image op-uc-image_inline" src="https://community.openproject.org/api/v3/attachments/100081/content">

### What is the expected behavior?

If no family\_name and given\_name is provided by the OIDC, then

1.  The First/Lastname in the user create dialog should be empty and the user should fill the blanks.
    
2.  The user profile entry should not be overwritten by the following logins.
    
3.  Optional: The user profile should be editable.
    
4.  Optional: Instead of blank first/last name in the user creation dialog, split name into first/last name
