adminApi.addUser(email, helper.loginAsPortalAdmin());
//2. assign
//developer
String role = Role.PORTAL_READONLY.toString();
APIResponse response = adminApi.assignRoleToUser(email, role,
helper.loginAsDeveloper());
assertTrue(response.statusCode == Status.ERROR_INSUFFICIENT_PERMISSION);
//portal user
response = adminApi.assignRoleToUser(email, role,
helper.loginAsPortalUser());
assertTrue(response.statusCode == Status.ERROR_INSUFFICIENT_PERMISSION);
//portal readonly
response = adminApi.assignRoleToUser(email, role,
helper.loginAsPortalReadOnly());
assertTrue(response.statusCode == Status.ERROR_INSUFFICIENT_PERMISSION);
UserProp prop = (UserProp) adminApi.getRolesForUser(email).object;
assertTrue(false == Util.isRolePresent(prop.roles, role));
//3. unassign
//developer
APIResponse resp = adminApi.unassignRoleToUser(email, role,
helper.loginAsDeveloper());
assertTrue(resp.statusCode == Status.ERROR_INSUFFICIENT_PERMISSION);
//portal user
resp = adminApi.unassignRoleToUser(email, role,