Adding groups api sample