Hi…
I’ve added the Rest API addon successfully… When i tried to invoke the Rest API thru the Postman. I’m getting the following error… Please help me to resolve the issue…
{
"error": "invalid_grant",
"error_description": "User is not allowed to use the REST API"
}
REST API defines its own RESTsecurity scope. You should configure a separate set of roles that includes cuba.restApi.enabled specific permission for users logging in to the system through the REST API. If you don’t do it, the users will not be able to log in via REST.
The REST API add-on defines its own REST scope, so if you add it to the project, you should configure a separate set of roles for users logging in to the system through the REST API. If you don’t do it, the users will not be able to login via REST because they won’t have any permissions including the cuba.restApi.enabled specific permission.
So you have to create new role, say My REST role , in role editor select the REST value in Security scope lookup field. Then enable the cuba.restApi.enabled specific permission. After that add all permissions that are required (entities, attributes, etc.)