Link two registry schema #293
Replies: 4 comments 13 replies
-
@aniket-tarento I tested with the above schemas, and I could invite an organization successfully. Could you share the curl, compose file and logs. |
Beta Was this translation helpful? Give feedback.
-
@tejash-jl Is there a dependency on 'teacher' and 'student' schema in the registry instance? Because when I deleted these two schemas from schema folder, I wasn't able to create 'organization' due to authorization error. But after having it back, the org entity is getting created successfully. |
Beta Was this translation helpful? Give feedback.
-
@tejash-jl Started facing unauthorized error again while inviting organization. Please, find the following curl, compose file and logs: curl:
docker-compose.yaml
|
Beta Was this translation helpful? Give feedback.
-
@tejash-jl I am also having the same issue with creating a teacher . Kindly look at priority it will block us. |
Beta Was this translation helpful? Give feedback.
-
ref: #163 #166 We have two schema 'Organization' and 'User', how to link these two schema so that organization can be created by registry admin and the users can be created by org admin and later verify that the particular user belong to that organization. Also, how to enforce the entity creation in third schema, so that only the users created in previous step with certain role can create an entity in third schema. Please, guide us on the role mappings between schemas. We tried with below schemas, but getting following error while inviting organization:
"errmsg":"Exception executing consequence for rule \"Create entity owner for newly added owner fields\" in dev.sunbirdrc.workflow: [Error: keycloakAdminUtil.createUser(stateDefinition.getEntityName(), stateDefinition.getUpdated().get(\"userId\").textValue(), stateDefinition.getUpdated().get(\"email\").textValue(), stateDefinition.getUpdated().get(\"mobile\").textValue()): javax.ws.rs.NotAuthorizedException: HTTP 401 Unauthorized]\n[Near : {... String owner = keycloakAdminUt ....}]\n ^\n[Line: 1, Column: 1]"}
Schemas:
cc: @dileepbapat @tejash-jl
Beta Was this translation helpful? Give feedback.
All reactions