Fixed divide by zero error in the user API.
App can now sync data permissions.