replace getgmlevel to getgroupid