I may still be approaching this problem from the wrong angle, but I am looking at a workflow task that after a user is added to a group it kicks off a script to either apply an F1 or E3 license via o365 remote commands. The script itself works perfectly outside of ARS, and my struggle is passing the parameters I want into the script. Since I am doing this from a group workflow it appears $request and $workflow are not giving me the User Objects (or at least not easily from what I can see). I suppose this is because the $request.class is equal to "Group" which isnt surprising.
I know I could parse the group and add anyone who isn't licensed on the o365 side, but with our number of objects that is a couple hour processing time and I don't want it kicking off for each person added to the group.
Open to any other ideas if anyone has worked with mailbox creation directly from ARS to o365 as well.