AD Provisioning Policy Form | Script Value not reflected

Which IIQ version are you inquiring about?

8.3

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

I have an issue in the provisioning policy form when I try to assign any field the value to be : Script

Then try any Script and event the simplest one : return “test”

When I run : preview form it is not working

I also tried to create AD account from manage accounts to check whether the value is auto populated in the Workitem but it is not populated

The only case working with me is to assign static value

Both rule / script not working

Steps for the issue:

1- Manage Account → request AD Account

2- Workitem is presented , I filled the workitem then the provisioning went correctly

3- I tried to automate this so I opened : Applications → Application Definition→ AD → Configuration→ Provisioning Policy → create

4- I edited the value for SAMAccount → for type settings I checked the review required → for value settings I choose it to be script → try simplest script return “test”; not working

5- I also created rule which contain multiple switch cases to return value based on field name and it is also not working

Please provide the xml changes of the provisioning policy. That will be helpful in identifying the issue.

Thanks

Hello @msingh900

Can you tell me where can I find the xml of the default AD provisioning policy form for : create?

From Application object, check for a tag with the name ProvisioningForms and copy those value and send it here

Otherwise, you can send full Application XML.

Hi @AlaaKhaled, if you are using the rule, please go to Debug, search for the rule, and provide the full code here.
If you are using a script, go to Debug → Application and provide the full application configuration, if you feel it is safe to share.

Thanks @msingh900 @santhirajumunganda

I accessed the XML, and it is working now. For example:

<Field displayName="con_prov_policy_ad_sAMAccountName"
       helpKey="help_con_prov_policy_ad_sAMAccountName"
       name="sAMAccountName"
       reviewRequired="true"
       section="User Details"
       type="string">
  <Script>
    <Source>
      String base = "test";
      return base;
    </Source>
  </Script>
</Field>

I have another question: how can I prevent the work item from being displayed at all? The field is auto-populated, but it is still displayed to the user with the calculated value. How can this be skipped?

Which workitem you are talking about. Can you please share a screenshot.

In the provisioning policy, are you setting the value for the required attributes that is needed for your operation. If mandatory attribute value is not generated then it will show a workitem and display you the fields with calculated value and extra value you need.

Hello @AlaaKhaled,
If the work item is being populated, please check which attribute is being populated. Then, check that attribute in the provisioning policies and, in the Type Settings, verify whether the “Review Required” option is enabled. Disable it, and then the work item will not be shown.

Hello @AlaaKhaled is it resolved?

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