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
2 replies
Subscribers
5 subscribers
Views
1447 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Plug-Ins
Problem Statement: Need appropriate API to fetch all parent groups of
anushreej
over 10 years ago
Problem Statement:
Need appropriate API to fetch all parent groups of a given User using Appian API.
Description:
There are two queries that I am facing with GroupService:
1. For a given user, I want to retrieve all the groups in which the user is either a member or an administrator. For fetching groups in which the user is a member, I use the following method to get proper results.
GroupService.getGroupIdsForUserByRole(userName, GroupService.USER_ROLE_MEMBER)
Also for fetching parent groups for a basic user, using API GroupService.getGroupIdsForUserByRole(userName, GroupService.USER_ROLE_ADMINISTRATOR), yields correct results.
However if the user is an administrator, using the above API, only System Groups of which the user is administrator are fetched. This is also explained in the API documentation.
Please provide a way to find out all the groups of which the user is administrator ( System as well as Custom groups).
2. For a given user, I need to...
OriginalPostID-97033
OriginalPostID-97033
Discussion posts and replies are publicly visible
0
anushreej
over 10 years ago
... find out all the parent groups of the user in hierarchy. Using the method GroupService.getGroupIdsForUserByRole(userName, GroupService.USER_ROLE),
only the immediate parent groups of the user can be found out.
Please provide API to find parents of group as well so that a complete hierarchy can be built for any user/group.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Tim Nguyen
Appian Employee
over 10 years ago
Check out the "Group Functions" and "People Functions" plugins. They should provide some good examples.
forum.appian.com/.../91741
forum.appian.com/.../118093
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel