Details
Description
Steps to reproduce:
- Set up Solr Search Engine, see documentation.
- Create a user but don't assign him anywhere yet.
- Create any custom service which uses:
/** @var \eZ\Publish\API\Repository\UserService */ private $userService;
- Play around with the following code:
$user = $this->userService->loadUser(59); $adminUserGroup = $this->userService->loadUserGroup(12); $this->userService->assignUserToUserGroup($user, $adminUserGroup); //$this->userService->unAssignUserFromUserGroup($user, $adminUserGroup);
- Observe the Users tab in the Back Office.
Result:
You cannot see the changes you have done via the API.
Expected result:
You should see changes being reflected in the Content Tree.
Note:
Reindexing the content fixes this issue.
Affected methods:
assignUserToUserGroup, unAssignUserFromUserGroup