AccountExpires removal

Which IIQ version are you inquiring about?

Version 8.0

Share all details related to your problem, including any error messages you may have received.

Use case 1: in case of LOA set the AD AccountExpires as Termination Date.

case2:When LOA returned the remove the AD AccountExpires date.

Case2 I am a simply doing below to add in plan

acctReq = new AccountRequest(AccountRequest.Operation.Modify, link.getApplicationName(), null, link.getNativeIdentity());
		  acctReq.add(new ProvisioningPlan.AttributeRequest("accountExpires",ProvisioningPlan.Operation.Set,"0"));
		  acctReq.setInstance(link.getInstance());

But it is not getting Remove.
Can you please help me what is wrong or what is the way to handle it?

Actually by setting the attribute “accountExpire” to be “0” should work and change the attribute to never…

Could you please share the logs so we can check with you?

Also there is another way too, you can use Clear-ADAccountExpiration cmdlet as a PowerShell script, but I prefer the 1st one, which changing the value only.

image

Works for me

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.