# Custom form for ad group creation

**URL:** <https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578>\
**Category:** IIQ Discussion and Questions\
**Tags:** forms, identityiq\
**Created:** [March 1, 2025, 2:17am UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578 "2025-03-01T02:17:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![PJain](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PJain](https://developer.sailpoint.com/discuss/u/PJain)\
**Post date:** [March 1, 2025, 2:17am UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/1 "2025-03-01T02:17:50Z")

</div>

## Which IIQ version are you inquiring about?

8.4

Has anyone tried to create a custom quicklink/form to create AD groups in iiq? If yes, do you have any pointers on how the quicklink and form should be developed?

---

<div class="post-metadata">

**Author:** ![Arpitha1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/arpitha1/32/20512_2.png) [@Arpitha1](https://developer.sailpoint.com/discuss/u/Arpitha1)\
**Post date:** [March 3, 2025, 3:12am UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/2 "2025-03-03T03:12:03Z")

</div>

Hi @PJain

Refer this link to know about quicklinks - [https://community.sailpoint.com/t5/Technical-White-Papers/Quicklinks-7-1-and-later/ta-p/78197](https://community.sailpoint.com/t5/Technical-White-Papers/Quicklinks-7-1-and-later/ta-p/78197)

Basically you need launch workflow from quicklink, then you can display form in workflow step.

---

<div class="post-metadata">

**Author:** ![ashishbhatia](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ashishbhatia/32/25152_2.png) [@ashishbhatia](https://developer.sailpoint.com/discuss/u/ashishbhatia)\
**Post date:** [March 3, 2025, 5:33am UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/3 "2025-03-03T05:33:10Z")

</div>

Hi,  
You an follow below steps:

1. Create a custom Quicklink (with httpSession attribute to show the success message after submission)
2. Call the custom workflow.
3. Inside custom workflow, create a form.
4. Form can have below options for user input  
a. Group Name  
b. Group Description  
c\*. Group Type (like: Security, Distribution)  
d. Owners field (later can be added a workgroup members)  
e\*. Group scope (Global, Universal, Domain Local)  
… any other required fields as per your org.
5. Once user clicks on Submit.
6. Create ProvisioningPlan with ObjectRequest and call LCM workflow (must be done in background) for better UX.
7. Navigate the user back to Home with Success message and request id.

- fields are optional and can be set in Provisioning plan as hard coded values based on requirement.

---

<div class="post-metadata">

**Author:** ![PJain](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PJain](https://developer.sailpoint.com/discuss/u/PJain)\
**Post date:** [March 3, 2025, 2:26pm UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/4 "2025-03-03T14:26:54Z")

</div>

Here’s my quicklink xml -

```auto
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE QuickLink PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<QuickLink action="workflow" category="Entitlements" created="1740715992263" id="0a04722a95401f8e81954ac224c71437" messageKey="Create AD Group" modified="1741011537849" name="PCTY - QuickLink - Create AD Group Form" significantModified="1741011537849">
  <Attributes>
    <Map>
      <entry key="allowOther" value="false"/>
      <entry key="forceAllowOthers" value="false"/>
      <entry key="forceAllowSelf" value="true"/>
      <entry key="hideAllowSelf" value="true"/>
      <entry key="quickLinkIdentityId">
        <value>
          <Script>
            <Source> 
              return currentUser.getId();
          </Source>
          </Script>
        </value>
      </entry>
      <entry key="workflowName" value="PCTY - Workflow - Create AD Group"/>
    </Map>
  </Attributes>
  <QuickLinkOptions allowSelf="true" created="1740859217813" id="0a04722995401cb38195534b9795278f" modified="1741011537849" significantModified="1741011537849">
    <DynamicScopeRef>
      <Reference class="sailpoint.object.DynamicScope" id="0a0472298615182281862e0f19b12910" name="IAM Admin"/>
    </DynamicScopeRef>
  </QuickLinkOptions>
</QuickLink>

```

and here’s my workflow -

[Workflow-CreateADGroup.xml](https://developer.sailpoint.com/discuss/uploads/short-url/3Xo4LcgdLy3lakpcbDhoV3IKA4P.xml) (5.7 KB)

But I am getting this error when launching the quicklink -

 ![image](https://global.discourse-cdn.com/sailpoint/original/3X/9/4/940bb0560abcffd69d1015c5c10467d06c3cc29d.png)

---

<div class="post-metadata">

**Author:** ![sreeram](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sreeram/32/25311_2.png) [@sreeram](https://developer.sailpoint.com/discuss/u/sreeram)\
**Post date:** [March 3, 2025, 11:01pm UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/5 "2025-03-03T23:01:59Z")

</div>

Could you please provide the logs for more context?

---

<div class="post-metadata">

**Author:** ![pravin\_ranjan](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/pravin_ranjan/32/6771_2.png) [@pravin\_ranjan](https://developer.sailpoint.com/discuss/u/pravin_ranjan)\
**Post date:** [March 4, 2025, 1:37am UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/6 "2025-03-04T01:37:58Z")

</div>

You can remove this line

```auto
<entry key="quickLinkIdentityId">
        <value>
          <Script>
            <Source> 
              return currentUser.getId();
          </Source>
          </Script>
        </value>
      </entry>

```

In workflow, you will get directly by “launcher”.

you will get identity by

```auto
Identity requester = context.getObjectByName(Identity.class, launcher);

```

---

<div class="post-metadata">

**Author:** ![PJain](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@PJain](https://developer.sailpoint.com/discuss/u/PJain)\
**Post date:** [March 4, 2025, 2:52am UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/7 "2025-03-04T02:52:48Z")

</div>

There are no errors in the log

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [May 3, 2025, 2:53am UTC](https://developer.sailpoint.com/discuss/t/custom-form-for-ad-group-creation/102578/8 "2025-05-03T02:53:30Z")

</div>

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