writting user group API, ref #98