Creation of admin and content creator/reviewer roles #46
-
How can one create various admin roles in creation portal? How can one create various roles such as Content Creator and Content Reviewer in consumption portal? If you have any reference document for this query please share it. You can go through this discussion for the context :- |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 9 replies
-
User roles can be created using /user/v2/role/assign API. ORG_ADMIN role has to be assigned internally. All other roles can be assign by user who as ORG_ADMIN role. In request, pass the userId to which the role needs to be assigned and the list of roles. Listt of roles should include the role that needs to be assigned and scope should have the organisation in which the user has that role. API documentation: Assign roles |
Beta Was this translation helpful? Give feedback.
@githubpiyush the following is the curl for non-ed dev environment.
curl --location --request POST 'https://dev.lern.sunbird.org/api/user/v1/sso/create' \ --header 'Content-Type: application/json' \ --data-raw '{ "request": { "firstName": "custchanneladmin1", "password": "Password@1", "email": "[email protected]", "userName": "custchanneladmin1", "lastName": "custchanneladmin1", "emailVerified":true, "organisationId":"01269878797503692810", "channel":"tn", "roles": ["ORG_ADMIN"] } }'