Add resource grouping api