Details
-
Improvement
-
Resolution: Unresolved
-
High
-
5.3-dev
Description
I don't know if there are any plans for this or how it's done on the wild.
However I think UserService::loadUserGroupByIdentifier is totally missing in the service, the only way to load the user group is through it's id or calling the groups of an user.
Since the UserGroup->identifier must be unique this is do-able.
So the improvement request:
/** * Get a User Group object by identifier * * @param string $userGroupIdentifier * * @return \eZ\Publish\API\Repository\Values\User\UserGroup * * @throws \eZ\Publish\API\Repository\Exceptions\NotFoundException If user group can not be found */ public function loadUserGroupByIdentifier( $userGroupIdentifier ):