• Powershell code to add a user temporarily to an AD group

    Hi all

    I'm working on a workflow to add a user to an AD Group with an End date. In my case 24 hours later.

    I have found the powershell code how to do it but it is not functioning as I expected.

    If I add the user to the group and then add a removal…