Replies: 1 comment 18 replies
-
Looks like it is being validated someplace, and failing. Is the same value reflecting for the forms during user onboarding as well? |
Beta Was this translation helpful? Give feedback.
18 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Context:
For a SB tenant, we need to setup different User Types / Personas (instead of Student, teacher etc..)
I have created those new User Types using the form Create APIs
example of new User Types: Farmer, FLW etc..
Following is the output of form read api after the previous step
// "result": { "form": { "type": "config", "subtype": "userty pe", "action": "get", "component": "portal", "framework": "*", "data": { "templateName": "userType", "action": "get", "fields": [ { "code": "public", "name": "Public", "label": "frmelmnts.lbl.public", "visibility": true, "image": "guest-img1.svg", "index": 0, "searchFilter": [ "Public" ] }, { "code": "farmer", "name": "Farmer", "visibility": true, "label": "frmelmnts.lbl.farmer", "image": "guest-img2.svg", "index": 1, "searchFilter": [ "Public", "Farmer" ] }, { "code": "flw", "name": "Field Level Worker", "index": 3, "visibility": true, "label": "frmelmnts.lbl.flw", "image": "guest-img5.svg", "searchFilter": [ "Public", "Farmer", "Field Level Worker" ] },
Now when I login as user, => click on Profile => Edit preferences, selected the Role as "farmer".
And when try to save, the User Update Api returns the error
"Invalid value farmer for parameter userType. Please provide a valid value."
Please help me understand, is there any other configuration needs to be done to make that work? Or is there any other places that i need to add the newly created roles?
cc: @reshmi-nair @rhwarrier
Beta Was this translation helpful? Give feedback.
All reactions