Please share any images or screenshots, if relevant.
Please share any other relevant files that may be required (for example, logs).
Share all details about your problem, including any error messages you may have received.
We have a requirement where we need to assign a role and update attributes in active directory once the AD account is successfully created. We are exploring “After Provisioning Rule” to check the provisioning result and if it shows committed, then we intend to create a provisioning plan and execute it in the same rule. Has someone explored this or is there a best practice that we can refer to?
@sumitsatija1 This is a common case, but don’t execute it right away. You schedule to run your plan in some time like 30 mins or later.. if execute it right away, you may end up with Lazyinitialization Exception or deadlock.
Alternatively, you can also achieve this using a role with assignment rule and provisioning form where you can check if AD is created or not, then assign the role with the attributes that you want to provision.
Yes, this approach works. After the AD account is created, the After Provisioning Rule can check the result, and if it shows committed, build a plan to assign the role and update the attributes.
Avoid the rule triggering itself. The follow-up plan is also a provisioning request, so the rule runs again when it completes. Add a check so it only acts on the original account creation, not the followup