|
| 1 | +# Enterprise Mode |
| 2 | + |
| 3 | +In Enterprise Mode, there is only One Workspace that gets created automatically and Users can only join in that Workspace as a Member/Admin, but can't create their own Workspaces. With some other settings, Super Admin can control the behavior of Users on Enterprise mode . ( will explain it )  |
| 4 | + |
| 5 | +### Setting Up Enterprise mode :  |
| 6 | + |
| 7 | +1. In Local Setup, we have a Root Admin User, that we can configure in docker-compose-multi.yml file. This user will be created by default and it will Super Admin of the default Workspace.\ |
| 8 | +  (1).png>) |
| 9 | +2. Set LOWCODER\_WORKSPACE\_MODE to "ENTERPRISE" in docker-compose-multi.yml file. \ |
| 10 | + .png>) |
| 11 | +3. In the above screenshot, you can see three configuration variables regarding Email and Workspace creation on Sign up. Let's go through these one by one :  |
| 12 | + 1. **LOWCODER\_EMAIL\_SIGNUP\_ENABLED :** \ |
| 13 | + This variable is the configuration for showing "Sign Up" button on Lowcoder. When it is set to "TRUE", "Sign Up" button will show up and new User can sign up in ENTERPRISE mode. But, as this is ENTERPRISE mode, so new User will only become the Member of default Workspace. \ |
| 14 | + LOWCODER\_EMAIL\_SIGNUP\_ENABLED = true;\ |
| 15 | + \ |
| 16 | +  (2).png>)\ |
| 17 | + LOWCODER\_EMAIL\_SIGNUP\_ENABLED = false;\ |
| 18 | + \ |
| 19 | +  (1).png>) |
| 20 | + 2. **LOWCODER\_CREATE\_WORKSPACE\_ON\_SIGNUP :** \ |
| 21 | + This variable is the configuration for creating a Workspace when new User signs up, but as there is only One Workspace that gets created by default in ENTERPRISE mode, so this variable value doesn't matter in ENTERPRISE mode. Setting it to TRUE or FALSE won't create a new Workspace on Sign Up.\ |
| 22 | +  (2).png>) |
| 23 | + |
| 24 | +### Scenarios :  |
| 25 | + |
| 26 | +1. LOWCODER\_WORKSPACE\_MODE = ENTERPRISE |
| 27 | +2. LOWCODER\_EMAIL\_SIGNUP\_ENABLED = true |
| 28 | + |
| 29 | +| Scenario | Subscenario | Expected Result | |
| 30 | +| ------------------------------------ | ----------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | |
| 31 | +| Can Workspace Admin login Normally | | | |
| 32 | +| | If They are Admin of Single Workspace | Should be able to Login | |
| 33 | +| | If They are Admin of multiple Workspaces | Not Applicable as ENTERPRISE mode allows only ONE Workspace | |
| 34 | +| | If they are Admin on Workspace A, but Member on Workspace B | Not Applicable as ENTERPRISE mode allows only ONE Workspace | |
| 35 | +| Can Workspace Members login Normally | | | |
| 36 | +| | If they are Member at a single Workspace | Should be able to Login | |
| 37 | +| | If they are Member at multiple Workspaces | Not Applicable as ENTERPRISE mode allows only ONE Workspace | |
| 38 | +| | If they are Member at Workspace A, but Admin on Workspace B | Not Applicable as ENTERPRISE mode allows only ONE Workspace | |
| 39 | +| New User Sign up | | | |
| 40 | +| | Can New User sign up as an Admin | Not Applicable as in ENTERPRISE mode, new User can only sign up as a member of default Workspace | |
| 41 | +| | Can New User sign up as a Member | Any User should be able to sign up as a Member of default Workspace | |
| 42 | +| | Can Super Admin make a Member the Admin of Default Workspace | Super Admin should be able to update the Role of Member to Admin | |
| 43 | +| | Can Admin create a New Workspace | Admin should NOT be able to create a New Workspace | |
| 44 | +| | Can Super Admin create a New Workspace | Super Admin should NOT be able to create a New Workspace | |
| 45 | +| | Can Super Admin or Admin update the Role of a Member to Developer | Super Admin or Admin should be able to update the Role of a Member to Developer | |
| 46 | +| | Can Developer create a New Workspace | Developer should NOT be able to create a New Workspace | |
| 47 | + |
| 48 | +| Scenario | LOWCODER\_EMAIL\_SIGNUP\_ENABLED | LOWCODER\_CREATE\_WORKSPACE\_ON\_SIGNUP | Disable Email Auth | |
| 49 | +| -------------------------- | --------------------------------- | --------------------------------------- | -------------------- | |
| 50 | +| Can Admin Login | True | NA | Enabled | |
| 51 | +| .... | True | NA | Disabled | |
| 52 | +| .... | False | NA | Enabled | |
| 53 | +| Can Admin Login | False | NA | Disabled | |
| 54 | +| Can Member Sign Up / Login | True | NA | Enabled | |
| 55 | +| .... | True | NA | Disabled | |
| 56 | +| .... | False | NA | Enabled | |
| 57 | +| Can Member Sign Up / Login | False | NA | Disabled | |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | +**Scenario #1 : Admin -> When LOWCODER\_EMAIL\_SIGNUP\_ENABLED = True or False** \ |
| 62 | +Any User can't sign up as Admin in ENTERPRISE Mode, regardless of any settings for Env Variables. Admin can only Login. |
| 63 | + |
| 64 | +Here, if Admin disables the "Email Auth" ( means that Members can't Sign up/Login using Standard Email field ), Lowcoder allows Admin to still be able to login using /admin/auth/login. But, for other Users, Email field won't be available at /user/auth/login. They would only be able to see other Auth Providers options set by Admin.\ |
| 65 | +**View on /user/auth/login :** \ |
| 66 | +.png>) |
| 67 | + |
| 68 | +**View on /admin/login :** \ |
| 69 | +.png>) |
| 70 | + |
| 71 | +**Scenario #2 : Member -> When LOWCODER\_EMAIL\_SIGNUP\_ENABLED = True**\ |
| 72 | +This means that New User can sign up as Member. When Email Auth is Disabled, then User can only Sign up/Login using other Auth Providers. |
| 73 | + |
| 74 | +**Scenario #3 : Member -> When LOWCODER\_EMAIL\_SIGNUP\_ENABLED = False**\ |
| 75 | +With this configuration, only existing Members would be able to Login to Lowcoder. No new Member can Sign up. |
| 76 | + |
| 77 | +**Note :** Workspace Mode Env variable can also have the value "SINGLEWORKSPACE" instead of "ENTERPRISE" .\ |
| 78 | +.png>) |
0 commit comments