Each workspace and users inside that can have many roles as they want. You can assign a role to a user via this API.

curl --data '{"roleId":"0e74ca35","userId":"4fe83d4b"}' -X POST http://localhost:4500/workspace/role/assign
{
  "data": true
}