diff --git a/ocs/pkg/service/v0/groups.go b/ocs/pkg/service/v0/groups.go index f349ba04a3..7ea19400c2 100644 --- a/ocs/pkg/service/v0/groups.go +++ b/ocs/pkg/service/v0/groups.go @@ -17,7 +17,7 @@ import ( func (o Ocs) ListUserGroups(w http.ResponseWriter, r *http.Request) { userid := chi.URLParam(r, "userid") - account, err := o.getAccountService().GetAccount(r.Context(), &accounts.GetAccountRequest{Id: userid}) + account, err := o.fetchAccountByUsername(r.Context(), userid) if err != nil { merr := merrors.FromError(err)