Revert "Remove user repository interface"

This reverts commit 3bd0bafc95dbc224e26953ab83a3a4dd4262ca85.