Will GroupService.findGroupsPaging() method find Restricted & Personal group

Will GroupService.findGroupsPaging() method find Restricted & Personal groups?

I am using this method to find public group and it works fine for public group. But when i tried to use this method for finding "Restricted" / "Personal" groups, the code fails. the groupArray size returned is zero.

I am using the below code for finding group which works for public group & does not work for personal / restricted group.
GroupService grpService = getGroupService();
                                        GroupSearch grpSearch = new GroupSearch();
                                        grpSearch.setGroupName(groupName);
                                        grpSearch.setOperatorGroupName(GroupSearch.Operators.EQUALS);
                                        
                                        ResultPage allGroupsResultPage = new ResultPage();
                                        int startIndex = 0;
                                        int batchSize = Constants.COUNT_ALL;
                                        allGroupsResultPage = grpService.findGroupsPaging(grpSearch, false, startIndex, batchSize,Group.SORT_BY_GROUP_NAME, Constants.SORT_ORDER_ASCENDING);

please suggest how to find personal / retstricted groups using the API.

...

OriginalPostID-133973

OriginalPostID-133973

  Discussion posts and replies are publicly visible