Set accountExpires attribute in Active Directory

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2019 01:13 AM
For user account, I have account Expires date on RITM.
Using Orchestration, how can I set accountExpires attribute in Active Directory.
- Labels:
-
Orchestration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2019 02:01 AM
Hi,
please check the solution provided to the below thread, it should fit your need:
If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.
Thank you
Cheers
Alberto

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2019 04:12 AM
Hi Alberto,
I have gone through the link, and I am new to Powershell scripting.
So, can you suggest me what is the command written and how it is constructed.
Thanks,
Sachin Chuahan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2019 02:03 AM
i am assuming here you have used "Update AD Object" activities in your workflow.
first save the value of account Expires date in workflow scratchpad and then you can use that in object data field .
workflow.scratchpad.acnt =current.variable.account_expires_date // make sure the variable name is correct.
you just need to set the value in object data field.
{"accountExpires" : "workflow.scratchpad.acnt "}
i am adding doc link here kindly refer that "Update user data" part in the doc.
Update Active Directory with Orchestration

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-17-2019 06:26 AM