XF 1.5 Any way to remove all users with custom node permissions set?


I was wondering if there was a query I could run to set any users that have any overriding individual node permissions back to default for their group ( I guess inherit ). We imported another forum and each one has 5 to 10 users that have a custom permission granted of some kind. With 50 forums and 5 to 10 users that is 250 to 500 individual users we have to manually reset. If there is any query that can do this it would save us half a day of tedious work.