convert user_groups_table.py into PHP

Change-Id: I6adb637214f4ec2320bff5b6fad2ca0d7242b4af
Merge "convert user_groups_table.py into PHP"