hngprojects / hng_boilerplate_nestjs

Description
Apache License 2.0
181 stars 105 forks source link

[FIX]: [ANCHOR:BE JAVA] Create Default Organization for Newly Signed-Up User #913

Open Antynews opened 2 months ago

Antynews commented 2 months ago

Description

When a new user signs up, they should be automatically assigned to a default organization with name (first_name's Organisation). This ensures that each user is part of an organization by default, allowing them to immediately start using features that require organizational context.

Acceptance Criteria

  1. Automatically create a default organization for every new user upon successful sign-up.
  2. Organisation name should be first_name's Organisation
  3. Assign the newly signed-up user as the admin of this default organization.
  4. Ensure that the default organization has a standard set of configurations and settings.
  5. Handle any errors that may occur during the creation of the default organization.
  6. Test to confirm that the user is correctly associated with the default organization and can access all relevant features.

Purpose

To streamline the onboarding process by ensuring that every new user is immediately associated with an organization, which is essential for accessing organization-specific features and functionalities.

Requirements

Expected Outcome

Every new user who signs up is automatically assigned to a default organization with the necessary configurations, allowing them to use the platform without manual setup. Figma Link: https://www.figma.com/design/VEItfX6St5NSAqqNHImcxD/HNG-Boilerplate-Designs?node-id=1-2&t=cwekpYIvtORMEPYf-0 Live Link: https://anchor-java.teams.hng.tech/login

Ofektom commented 2 months ago

I'm interested