Skip to content

Let User field to be required to be unique #380

@fubuloubu

Description

@fubuloubu

Describe the bug

If you want to add a field that should be globally unique (within a tenent) such as a username, it is currently not possible to specify that

To Reproduce

Steps to reproduce the behavior:

  1. Go to 'User fields'
  2. Click on 'Create User Field'
  3. No way to add unique constraint on field

Expected behavior

A checkbox in this form that adds a UNIQUE constraint on the field should be available, at least on some field types such as string, phone number, maybe address, etc.

Configuration

  • Cloud or self-hosted: self-hosted (Railway)
  • If self-hosted, Fief version: 0.28.6

Additional context

I want to protect the privacy of my user's emails by only allowing account search via username

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions