Set Local LDAP AD account expiration date from service catalog submission through MID Server

Bimalesh
Tera Contributor

Hi,

We are trying to update account expiration date for an user in Local LDAP AD through MID Server.

Tried with a subflow and creating record through ecc_queue and calling a custom powershell script. However we are not able to pass two variable from the payload, one for the user identification and other one for the expiration date. 

Anyone went through similar scenario before.

 

1 REPLY 1

billmartin0
Giga Sage

@Bimalesh 

 

One approach you can try is to combine both values into a single payload (JSON format is clean and easy to parse), then extract them inside the PowerShell script.

For example, instead of passing 2 separate flow variables, send one payload like:

 
{ "userId": "john.doe", "expirationDate": "2026-01-31" }

Then your PowerShell script can read the payload and pull both values (user identification + expiration date).

 

if you find the response lucrative please like and accept as solution 🙂

 

Hope this helps. If you can share a sample of the ECC payload you’re generating, I can help suggest how to structure it properly.