Imagine you got a locked AD account and you don’t have access to Active Directory or don’t have rights to unlock your account but luckily have access to vRO or your colleague has access to the same vRO where your account’s AD is connected or maybe you just want to check and unlock an AD user account programmatically in your use-case (for eg. some service accounts that get locked every time you try to run something), What you should do? Just run a simple vRO script.
Create action and add input of type
AD:User and paste 👇 script & execute it.
// Input AD:User user.setAttribute('lockoutTime','0'); return user;
- Create a new action and copy-paste the above script.
- Add input
- Save the action and Run it.
- Select the user that you want to unlock and Click
The action should execute successfully and your locked account is unlocked now.
- Never expire account:
- Never expire password:
- Set email address: