Hi there,
Is there any known way to set up an Approval loop that can access all the users with a certain workspace permission, rather than the users chosen in the item details?
More specifically, is there any methods being written like "Security.listUsersInPermission('PERMISSION_NAME')".
This would help certain approval transitions without any setup in the item details tab.
Thank you
Solved! Go to Solution.
Solved by jpiggee. Go to Solution.
Kevin,
From what you are talking about;” Approval loop that can access all the users with a certain workspace permission, rather than the users chosen in the item details”
I think at this stage, a simple new role with the permissions to do the transition in the workflow would be a better solution to the issue at hand.
An approval loop is used more for creating a group or a group of people and requiring X amount of people to OK the item before the item is allowed to pass.
If you are looking for something more along those lines then Security.inGroup or Security.inRole, would be better for this.
I apologize, I should have been more clear.
The reason I need the approval loop is for the exact reason you say: "requiring X amount of people to OK the item before the item is allowed to pass", except the basic way of going about this requires the selection of approvers in the Item Details tab. For our system, each transition needs to have X amount of approvers, as well as diffferent approvers for each transition.
It would be possible to set things up with quite a lot of "Required Approvers" in the Item Details, but I was hoping to explore ways to automate the transitions by perhaps grabbing the users that have a particular transition's permission, and then setting up an approval loop off that.
Do you know of anything in the works that could help?
Not a problem at all.
So in this circumstance the best way to do it is add the users needed for the loop into their own group or role, give them the permissions needed, and test against the group or role.
However there are better none scripting options for doing this on the roadmap, but if you are looking for a solution for now this would be the best option.