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
5 replies
Subscribers
6 subscribers
Views
3328 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Is there a way to get the list of users and groups and their assigned roles for
miteshp
over 9 years ago
Is there a way to get the list of users and groups and their assigned roles for a process model based on process model id? Any smart service or functions?
OriginalPostID-193844
OriginalPostID-193844
Discussion posts and replies are publicly visible
0
sonalk
over 9 years ago
Hi Mitesh,
Create a process report from the Appian designer, select report type as "Task", select context type as" Tasks by process model". Configure the report with the main process model and select "Yes" for including the data from sub-processes (if any). Also in the report configure a column of the report as "Assigned to" with formatting as "User or Group Name". Then using the Query process analytics method as mentioned in the link below, you can get the data subset that will contain all the required data which can be manipulated based on the requirement.
forum.appian.com/.../System_Functions.html
Hope it helps.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sonalk
over 9 years ago
Also the definition of the column "Assigned to " should be "tp!assignees", this will provide the assigned users or group for the particular tasks as provided in the process model.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@miteshp As per your question, I assume that you are talking about the roles associated with the Process Model object such as Initiator, Viewer etc and you want to read the User or Group objects associated with those roles based on the id of Process Model. If it is so, to the best of my knowledge, there isn't any function or smart service to do the same. But you can build a plugin by making use of the 'getSecurityForProcessModel' function in the 'ProcessDesignService' Interface at https://forum.appian.com/suite/help/16.1/api/index.html?com/appiancorp/suiteapi/process/ProcessDesignService.html which will help you read the User or Group objects associated with role map of the Process Model.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
miteshp
over 9 years ago
@sonalk: Thanks for responding. That was a nice approach. But I think you are pointing towards the task assignments and I was actually referring towards the process model security.
@sikhivahans: I was looking for some existing functions /shared components, if any. But definitely we can consider building a custom plugin if required. This will help. Thanks!
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
@miteshp Unfortunately there aren't any as per my knowledge but the new implementation should be straight forward and quick as it requires a single API function to retrieve the data.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel