Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command Side for Users with User Schemas (Create / Delete) #7308

Open
7 tasks
Tracked by #6433
hifabienne opened this issue Jan 29, 2024 · 3 comments
Open
7 tasks
Tracked by #6433

Command Side for Users with User Schemas (Create / Delete) #7308

hifabienne opened this issue Jan 29, 2024 · 3 comments

Comments

@hifabienne
Copy link
Member

hifabienne commented Jan 29, 2024

As a ZITADEL Administrator I want to be able to add and remove users that apply to a predefined user schema, so I am able to ensure that my user data is consistent and applies to my standards.

Acceptance Criteria

  • Feature is behind a feature flag
  • CreateUser: adds a new user
  • the user data is filled according to the predefined user schema
  • if user doesn't match the userschema, human readable error message is shown
  • As an admin I am able to change all fields that are defined as writeable by admin
  • As an end user I am not able to change fields that are only writeable by an admin
  • DeleteUser: Removes an exisiting user.

Additional Information

User Object

  • id: unchangeble, unique identifier of the system
  • schema:
    • type: schema type of the user (e.g. human/machine)
    • revision: read only, revision of the schema the user was stored the last time (e.g. 4)
  • authenticators: list of possibilites how a user can authenticate itself. there can be multiple authenticators of the same type
  • contact: email and phone of the user if provided
  • state: one of Active, Inactive, Locked, Deleted
  • data/profile/traits: custom fields of a user based on the type (whats the best name for this?)
@hifabienne hifabienne mentioned this issue Jan 29, 2024
21 tasks
@hifabienne hifabienne assigned stebenz and eliobischof and unassigned stebenz Jan 29, 2024
@hifabienne
Copy link
Member Author

@eliobischof @stebenz can you please estimate this issue?

@hifabienne hifabienne changed the title Command Side for Users Command Side for Users with User Schemas Jan 29, 2024
@stebenz
Copy link
Collaborator

stebenz commented Jan 30, 2024

Depend on #7306 for schema
depend on #7314 for authenticators

Technical estimation:

  • user events: 1d
  • schema validation: 1d
  • unit tests: 1d
  • writemodel: 1d
  • permissions: 1d
  • integration tests: 1d

@hifabienne hifabienne changed the title Command Side for Users with User Schemas Command Side for Users with User Schemas (Create / Delete) May 3, 2024
@hifabienne
Copy link
Member Author

@eliobischof @stebenz as discussed I split the issue into create/delete and update functions.
Can you please estimate this?

Relates
#7898

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 📝 Prioritized Product Backlog
Development

No branches or pull requests

3 participants