Which IIQ version are you inquiring about?
8.3
I have a provisioning policy but i want to disable the AD account on creation how do i that and also i need to create a temp password for them ?
8.3
I have a provisioning policy but i want to disable the AD account on creation how do i that and also i need to create a temp password for them ?
@rrcooke -
Make sure the provisioning policy contains the following attributes:
userAccountControlSet this to a value that disables the account.
514 = Disabled Account (normal account + disabled)Temporary PasswordSet a temporary password using Provisioning policy form.
If you want to dynamically generate the password and assign it, use a Before Provisioning Rule (on the AD application):
if (plan != null && plan.getOperation() == ProvisioningPlan.Operation.Create) {
List<AccountRequest> acctRequests = plan.getAccountRequests();
for (AccountRequest acctReq : acctRequests) {
if (acctReq.getApplicationName().equals("Active Directory")) {
String tempPwd = "Temp#" + System.currentTimeMillis(); // Or use your own password logic
acctReq.addAttributeRequest(new AttributeRequest("password", ProvisioningPlan.Operation.Set, tempPwd));
acctReq.addAttributeRequest(new AttributeRequest("userAccountControl", ProvisioningPlan.Operation.Set, "514")); // Disabled
}
}
}
Hope this helps.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.