AndyHill Posted June 18, 2020 Posted June 18, 2020 Added my first 'add to AD group' automation into a BPM and it works exactly how I would want but I need the helpdesk to be able to see that is has done what we want so they don't have to perform any manual verification. I was using a decision as it shows the following options and I configured it so if successful it would update the timeline and checkpoint and if it was anything other than a success it would update the timeline to say verify the addition. However, regardless of the outcome I always get the no match result. Is there a better way to do this?
SamS Posted June 19, 2020 Posted June 19, 2020 Hi @AndyHill, The Active Directory Management Add Group (the Result Reference defaults to "ADGMAddGroup") will provide an (hopefully unset) "errors" response and an "outcome" response. They should be selectable under the "IT Automation" Variable Picker. You might want to rename the "IT Automation" node so the specific one you want (assuming there are more than one IT Automation nodes) is more easily findable.
AndyHill Posted June 19, 2020 Author Posted June 19, 2020 @SamS Thanks, do you know what the outcome responses are?
SamS Posted June 19, 2020 Posted June 19, 2020 Hi @AndyHill, Not off hand - and I guess I would need to go through a few iterations to potentially capture all - or check AD's documentation. The easiest way to find out would be to add the outcome as an update to a dummy/test request. I would be more inclined to check the "errors" response. IF it is at all set, then the absence of errors would be either empty of any text or it would be set to 0.
Steven Boardman Posted June 19, 2020 Posted June 19, 2020 @AndyHill looking on the wiki - https://wiki.hornbill.com/index.php/Active_Directory_Group_Management It looks like the outcome values will be '''OK''' or '''FAIL''' for the add user to AD Group Hope that helps 1
SamS Posted June 19, 2020 Posted June 19, 2020 @AndyHill "outcome" should be "OK" (when all went OK) or nothing at all (at the moment :- it should be "FAIL" or "WARN" depending on the issue). At the moment anything that fails will not have any responses from the script at all. In this particular instance "outcome" and "errors" are NOT populated when anything fails. We ARE working on this, so a future version will populate "outcome" and "errors" appropriately. Please keep an eye out for a new version of the "Active Directory Group Management" package.
AndyHill Posted June 19, 2020 Author Posted June 19, 2020 @Steven Boardman @SamS Thanks guys. I look forward to seeing the update.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now