Project

General

Profile

Feature #4577

[PROD FEB 25] Add a Register User API

Added by Sharmila Saha 3 months ago. Updated about 2 months ago.

Status:
Closed
Priority:
High
Assignee:
Start date:
01/31/2025
Due date:
% Done:

0%

Estimated time:
Spent time:

Description

Add an API to register a new Trial (Cognito) User.
API Input: User email address
API Output : Temporary Password

Account: TESTDRIVE
PROJECT : <Account>-PROJ ie TESTDRIVE-PROJ
WORKSPACE : <Username>-Wk (Each User should have new Individual workspace)
Trial User : Max 60 days

When you create the workspace, clone everything from a GOLDEN-WK (Golden Workspace) - connections, doppelmodels, test etc.

Note: 1. Keep Account name and Golden Workspace name in config file so that we can change the names as required
2. Add a New Controller - RegistrationController
3. Only Users from Doppelio/System account can register users
4. Please verify that user account is deactivated after trial period (just check that this is happening correctly)

I want this API by end of next week - so please complete by wednesday or so.


Files

clipboard-202503071130-ondqw.png (57.5 KB) clipboard-202503071130-ondqw.png Sanjay Kumar, 03/07/2025 06:00 AM
clipboard-202503071130-zfikd.png (57.5 KB) clipboard-202503071130-zfikd.png Sanjay Kumar, 03/07/2025 06:00 AM
clipboard-202503071145-nkija.png (50.5 KB) clipboard-202503071145-nkija.png Sanjay Kumar, 03/07/2025 06:15 AM
clipboard-202503121037-iuulg.png (81.1 KB) clipboard-202503121037-iuulg.png Sanjay Kumar, 03/12/2025 05:07 AM
clipboard-202503121042-s7tw4.png (73.5 KB) clipboard-202503121042-s7tw4.png Sanjay Kumar, 03/12/2025 05:12 AM
#1

Updated by Archana Khetan 2 months ago

  • Assignee changed from Archana Khetan to Sharmila Saha

Hi Sharmila,

Are there any more changes to be done with respect to this ticket

#2

Updated by Sharmila Saha about 2 months ago

  • Project changed from Doppelio Web Application to Doppelio-TestDrive
  • Category deleted (UserManagement)
  • Assignee changed from Sharmila Saha to Sanjay Kumar
  • Priority changed from Immediate to High

Please test this API :

https://trialapi.doppelio.com/user/swagger/index.html

Register:
/api/RegisterUser/RegisterNewUser

This should create new user in TestDriveAccount with new workspace - everything in workspace TestDriveAccount-PROJ-Wk should be cloned. User should be able to login with MFA view and run tests.

Ignore the part about trial users - we do not have this feature yet.

Log defects to me - I will get them fixed

#3

Updated by Sanjay Kumar about 2 months ago

I have putted the token from a system user for API authorisation and then tried to register a new user but getting the error : {
"httpStatusCode": 400,
"statusCode": 2,
"statusDescription": "",
"message": "Doppelio URL Path is blank in appsettigs.json file"
}

#4

Updated by Sanjay Kumar about 2 months ago

Word with Archna she said she fixed for the config JSON file but now getting new error for User Modeule as shown below.

{
"httpStatusCode": 400,
"statusCode": 8,
"statusDescription": "",
"message": "NewUser2:Messages.UserModuleErrors.notfound"
}

#5

Updated by Sharmila Saha about 2 months ago

  • Assignee changed from Sharmila Saha to Sanjay Kumar

8 MAR 25 Release : Fixed. Problem happened if you used a combination of small and big characters.
People will generally register wil email addresses. So test with some random eamil addresses also.

#6

Updated by Sharmila Saha about 2 months ago

Please use this API :
https://trialapi.doppelio.com/doppelioDataAPI/swagger/index.html

Register API:
/api/DataApp/RegisterNewUser

Please test this

#7

Updated by Sanjay Kumar about 2 months ago

v[1.0.0]: As of 12th March I am able to use the Register API and able to register the user with following combinations :
(like an email), SanjuKumar(Combination of Big& small letter) , sanjukumars (all small letters),SANJU11 and when we try to put space and special character then we are getting the below error :

"Username: SANJU kumar contains unsupported characters. Supported Characters:^[A-Za-z0-9][A-Za-z0-9@_:,.-]+$"

Also available in: Atom PDF