[3.9] Add User repositories functions