Need to add roles and subroles while creating users #203
Replies: 1 comment
-
Hi Team, We found that when we create user the data like the profileUserTypes is not getting passed.
cc: @kiranharidas187 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
We are using Sunbird release 5.1.
We are trying to create a user with profileLocation and profileUserTypes in the request. The profileLocation is getting updated, but the profileUserTypes are not getting updated.
API Endpoint: api/user/v3/create
Request Body:
{ "request": { "firstName": "", "password": "", "dob": "", "email": "", "emailVerified": , "profileLocation": [ { "identifier": "4c5e7a1b-9392-472a-9f22-157faab8c25c", "code": "35", "name": "Andaman & Nicobar Islands", "id": "4c5e7a1b-9392-472a-9f22-157faab8c25c", "type": "state" }, { "identifier": "62372407-eb18-4aab-9444-24097d58b234", "code": "3503", "name": "N & M Andaman", "id": "62372407-eb18-4aab-9444-24097d58b234", "type": "district", "parentId": "4c5e7a1b-9392-472a-9f22-157faab8c25c" } ], "profileUserTypes": [ { "type": "administrator" } ] } }
Issue:
The profileUserTypes is not getting updated while profileLocation is updated successfully.
Expected Behavior:
Both profileLocation and profileUserTypes should be updated when the user is created.
Additional Information:
The profileUserTypes is getting updated in DIKSHA.
Any idea how we can update the profileUserTypes as well?
cc: @AmiableAnil @maheshkumargangula
Beta Was this translation helpful? Give feedback.
All reactions