Skip to content

Issue While Creating User in Step 5 of Sunbird ED Setup - keycloak_local_setup.md #1257

Open
@Ganesh-Protean

Description

@Ganesh-Protean

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":"[email protected]",
        "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": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions