Are entities automatically merged?

I have 2 authentication Back-Ends enabled: JWT and OIDC.

Currently, two entities are created for the same user if they log in from one Back-End or the other. In both cases, the value of the aliases is the same (let’s say “John_Doe” for the user John Doe, regardless of the authentication Back-End used to log in).

My concern is that 2 entities with 2 aliases are created, whereas I expected a single entity with 2 aliases to be created. I expected Vault to automatically merge entities if the same alias is detected across Back-Ends.

Do I need to schedule a job to merge entities periodically by myself?

Many thanks for the answers.