Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
3 replies
Subscribers
5 subscribers
Views
1260 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Will GroupService.findGroupsPaging() method find Restricted & Personal group
sivananthag
over 9 years ago
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
0
sivananthag
over 9 years ago
...thanks
Jhothi
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Ricardo Galvan
Appian Employee
over 9 years ago
Are you trying to search it through a user that has access to those groups? If not, this should be the expected behavior
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sivananthag
over 9 years ago
I am not trying to search it through user. I want to directly search a private / restricted group . My requirement is to search for a private / restricted group and if the group is not present, then to create a new group.
Currently since findgroup is always returning zero results, the new group gets created always and i want to fix it.
Thanks
Jhothi
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel