Multiple approvers from AD group
Click here to show the snippet.
{"activities":[{"id":0,"name":"Get approvers from an AD group","type":"Provider","properties":{"translations":{}},"boundValues":[{"id":420,"name":"Identity","description":"Specifies an Active Directory group object by providing one of the following property values.\n\n -- Distinguished Name\n -- GUID (objectGUID)\n -- A SAM Account Name (sAMAccountName)","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"static","value":"AD_Group_With_Approvers","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":true,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":421,"name":"LDAPFilter","description":"Specifies an Active Directory ldap filter.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":422,"name":"Property","description":"Specifies the properties of the output object to retrieve from the server.\nMail is returned by default. Use this parameter to return additional properties.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":423,"name":"Prefix","description":"Specifies a prefix for the commands output. For example: Group.\nThe prefix can be useful if you do not want to override existing variables.\nBy setting the prefix to \"Group\", the command returns variables such as: GroupSamaccountName and GroupDescription.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"static","value":"APPROVERS","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":true,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":424,"name":"DomainController","description":"Specifies the Active Directory Domain Services instance to connect to.\nIf no Domain Controller is specified the command will default to the domain controller that answers quickest.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true}],"displayWarning":false,"warningText":"","hasNewerVersion":false,"ownBoundVariables":[],"methodId":219,"package":"MS Active Directory","module":"Activity.ActiveDirectory","method":"Get-ZPADGroupMember","providerParameters":[{"id":420,"name":"Identity","description":"Specifies an Active Directory group object by providing one of the following property values.\n\n -- Distinguished Name\n -- GUID (objectGUID)\n -- A SAM Account Name (sAMAccountName)","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"static","value":"AD_Group_With_Approvers","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":true,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":421,"name":"LDAPFilter","description":"Specifies an Active Directory ldap filter.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":422,"name":"Property","description":"Specifies the properties of the output object to retrieve from the server.\nMail is returned by default. Use this parameter to return additional properties.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":423,"name":"Prefix","description":"Specifies a prefix for the commands output. For example: Group.\nThe prefix can be useful if you do not want to override existing variables.\nBy setting the prefix to \"Group\", the command returns variables such as: GroupSamaccountName and GroupDescription.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"static","value":"APPROVERS","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":true,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":424,"name":"DomainController","description":"Specifies the Active Directory Domain Services instance to connect to.\nIf no Domain Controller is specified the command will default to the domain controller that answers quickest.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true}],"additionalProviderParameters":[],"stopOnError":true,"providerResult":{"isBound":false,"value":false,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"allProviderParameters":[{"id":420,"name":"Identity","description":"Specifies an Active Directory group object by providing one of the following property values.\n\n -- Distinguished Name\n -- GUID (objectGUID)\n -- A SAM Account Name (sAMAccountName)","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"static","value":"AD_Group_With_Approvers","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":true,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":421,"name":"LDAPFilter","description":"Specifies an Active Directory ldap filter.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":422,"name":"Property","description":"Specifies the properties of the output object to retrieve from the server.\nMail is returned by default. Use this parameter to return additional properties.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":423,"name":"Prefix","description":"Specifies a prefix for the commands output. For example: Group.\nThe prefix can be useful if you do not want to override existing variables.\nBy setting the prefix to \"Group\", the command returns variables such as: GroupSamaccountName and GroupDescription.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"static","value":"APPROVERS","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":true,"needsValue":false,"isDuplicate":false,"isValid":true},{"id":424,"name":"DomainController","description":"Specifies the Active Directory Domain Services instance to connect to.\nIf no Domain Controller is specified the command will default to the domain controller that answers quickest.","inputDisabled":false,"providerParameterType":"string","required":false,"value":{"state":"notSet","value":null,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"isAdditional":false,"hasValue":false,"needsValue":false,"isDuplicate":false,"isValid":true}],"activities":[]},{"id":0,"name":"Approval from group","type":"Approval","properties":{"translations":{}},"boundValues":[{"type":"Parameter","parameter":{"isBound":true,"value":"","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":61,"boundTo":"APPROVERSMail"}}],"displayWarning":false,"warningText":"","hasNewerVersion":false,"ownBoundVariables":["APPROVERSMail"],"connectedFormName":"OrderForm1","approvalType":"parallel","required":"one","onTimeout":"reject","timeout":{"isBound":false,"value":345600,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"assignees":[{"type":"Parameter","parameter":{"isBound":true,"value":"","hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":61,"boundTo":"APPROVERSMail"}}],"notifyAssignees":{"isBound":false,"value":true,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"approvalResult":{"isBound":false,"value":false,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"remindTime":{"isBound":false,"value":172800,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"remindAssignees":{"isBound":false,"value":false,"hasWarning":false,"warningText":"","isBoundToSystemVariable":false,"boundToId":0,"boundTo":""},"templateName":null,"remindTemplate":null,"activities":[{"id":0,"name":"New OnForeachApprove event","type":"Event","properties":{"translations":{}},"boundValues":[],"displayWarning":false,"warningText":"","hasNewerVersion":false,"event":"OnForeachApprove","activities":[]},{"id":0,"name":"New OnForeachReject event","type":"Event","properties":{"translations":{}},"boundValues":[],"displayWarning":false,"warningText":"","hasNewerVersion":false,"event":"OnForeachReject","activities":[]}]}],"variables":[{"realId":61,"name":"APPROVERSMail","value":"","shouldHide":false,"hideStartIndexDisplay":1,"hideLengthDisplay":1,"hideAll":false,"hideRemaining":false,"hideLength":1,"hideStartIndex":1,"isInputParameter":false,"isOutputParameter":false,"isRequired":false,"displayName":"NewVariable","description":"","variableUsageList":[],"id":61,"variableType":"String","isSystemVariable":false,"isAssignable":true,"isBound":true,"isBoundToSetupFormField":false}]}
Description
This snippet shows you how to have an approval in your workflow where the approvers are retrieved from a specified AD group.
Many prefere this approach over using a functional user account because the approval will be sent out to each users' personal mailbox and they can approve without needing to login with the functional user account.
Features
- Gets e-mail addresses for users from AD group
- Assigns Approval activity to the users
Prerequisites
- Active Directory Plugin
Zervicepoint version
- Built in Zervicepoint version: 1.25
Configuration needed
- Replace AD_Group_With_Approvers with your own approver group.
- The approval events are empty. Add your own workflow here.
- The approval is set to be Parallel and only ony approval is required. Change this if needed.
How do I use a snippet?
It's very easy! Check out the following instructions: