Restore the `User::getData()` method (see #6146)