only update users if necessary
Merge pull request #5007 from dimagi/domain_save

only update users if necessary