I have tried to modify the UID and GID manually and I have not encountered any problems so far.
Some things to keep in mind when making these changes are:
1) The WebID is added to the "Start ID for userid/webid connect"
2) The Client is created when its first Web is created
3) ispapps and ispconfig do not need to be modified