5.Steps to create default system admin user and other tenant users
We have successfully completed the first four steps of setting up Sunbird ED, but we are encountering an issue when trying to create a user in Step 5.
Request payload:
curl --location --request POST 'localhost:9000/v1/ssouser/create' \
--header 'Content-Type: application/json' \
--header 'x-authenticated-user-token: #'access_token' value from above CURL response' \
--data-raw '{
"request": {
"firstName": "Test",
"lastName": "user",
"channel": "sunbird",
"userName": "testuser",
"email":"testuser@test.com",
"emailVerified": true,
"password": "Test@123",
"userType": "teacher"
}
}'
**The process fails with the following error message:**
{
"id": "api.ssouser.create",
"ver": "v1",
"ts": "2025-03-09 13:42:10:514+0530",
"params": {
"resmsgid": "91452732-2e6d-40b0-a574-6d2d5d00af0f",
"msgid": "91452732-2e6d-40b0-a574-6d2d5d00af0f",
"err": "UOS_USRCRTnull",
"status": "FAILED",
"errmsg": "userType config is empty for the statecode default"
},
"responseCode": "CLIENT_ERROR",
"result": {}
}
5.Steps to create default system admin user and other tenant users
We have successfully completed the first four steps of setting up Sunbird ED, but we are encountering an issue when trying to create a user in Step 5.
Request payload: