I have a workflow with approval and which are sent to a calculated group that must approve.
Now, the fact that if one stands as the creator of the task you have no right to approve the following workflow.
This means that I need to test the ordering is a member of a group and determine if this is the case then he / she could not be allows to approve?
How do I do this.
Nintex 2013 on-prem.
I'm not sure if I understood everything right.
First, not the creator of your task is able to approve. Instead everyone in "assignees" is able to approve.
Can you post a screenshot of your approval action configuration? You should be able to assign the task to a group of people. If you check the checkbox below the assignees action, each member of the group gets an individual task if needed.
sounds like you will need to get members of the group into a collection, check if the creator of the item is in the collection, and if so remove them, then assign the task to the collection? I had a quick search on the community for ldap ad group members and this might help
I am using a calculation to find the Group - and are sending a mail to the master approver - but it is a Group WHO can approve.
And in this AD-Group the creater can be a member
That's an interesting scenario, because what I'm hearing is that the task is assigned to a group that could actually contain the initiator of the workflow (who himself is unable to approve his own workflow).
You could add a rule to your task form (if you are using Nintex) to disable their ability to approve the task at the form level by comparing Current User to the initiator of the workflow. Could someone get around this? It's possible (its easy enough to find out if someone breaks the rules if they did).
A harder way would be to do it within the workflow. You'd have to check the user against the group and then extract a subset of users (minus the iniator) and assign the task to that subset dynamically. Doable - but is it worth the extra effort? Depends on your reqs. I think in most situations my first suggestion works well.
I think Mike's first suggestion is the best, but I would recommend to also disable the "Quick Edit" function on the task list, so that the initiator definitely cannot modify the task by using an alternative way.
Bente Bang Gormsen I think this will get you what you're looking for. If the initiator is part of the AD Group, it will remove them before assigning the tasks.