When user request for an entitlement(AD) where User does not have any account on the AD, account needs to be created on Active Directory and entitlemetn along with the password and the SMS to be sent to the user with the initial password.
This requirement can be handled in two ways: by using an After Provisioning Rule or by adding custom logic directly into the LCM Provisioning Workflow.
Before proceeding with either approach, it’s essential to ensure that the password field is properly defined within the provisioning policy for the Active Directory (AD) application. This step is crucial to ensure that the password is correctly generated and passed through the process.
Using After Provisioning Rule:
In this approach, you can configure the After Provisioning Rule to detect the type of operation from the provisioning plan. If the operation is a “Create” operation, you can extract the password from the attribute request.
Once the account request is successfully committed (i.e., the account is created in the Active Directory), the rule can trigger an action to send an email to the user, containing the initial password. This ensures the user receives their login credentials securely.
Please refer the after provisioning rule.
Alternatively, you can modify the LCM Provisioning Workflow itself. After the account creation process is successfully completed, you can introduce an additional step to send the password directly to the requester.
In this step, you would define an email template and logic to retrieve the generated password, then send it to the user.