# sailpoint.connector.ObjectNotFoundException in Azure Active Directory group creation

**URL:** <https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq, provisioning\
**Created:** [March 2, 2026, 12:35pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975 "2026-03-02T12:35:06Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamitde7](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@adamitde7](https://developer.sailpoint.com/discuss/u/adamitde7)\
**Post date:** [March 2, 2026, 12:35pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/1 "2026-03-02T12:35:06Z")

</div>

Hi Team,

We are using IIQ 8.4p2. While provisioning Azure AD groups using Azure Active Directory connector we are getting sailpoint.connector.ObjectNotFoundException frequently. However, the group is created in Azure Active Directory. We have created simple rule to create provisioning plan and execute the provisioning plan using Provisioner

Provisioner provisioner = new Provisioner(context);  
ProvisioningProject project = provisioner.compile(plan);  
provisioner.execute();

We think the issue is caused due to delay in group creating and verifying the creation by IIQ.

Is there any way to resolve the issue so that we don’t get this error?

Thanks in advance,

Amit Kumar De

---

<div class="post-metadata">

**Author:** ![SivaprakashRNTBCI](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sivaprakashrntbci/32/35826_2.png) [@SivaprakashRNTBCI](https://developer.sailpoint.com/discuss/u/SivaprakashRNTBCI)\
**Post date:** [March 2, 2026, 12:39pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/2 "2026-03-02T12:39:56Z")

</div>

@adamitde7

Please share your complete plan.

Thanks,

Sivaprakash.

---

<div class="post-metadata">

**Author:** ![mandarsane](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/mandarsane/32/35650_2.png) [@mandarsane](https://developer.sailpoint.com/discuss/u/mandarsane)\
**Post date:** [March 2, 2026, 1:09pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/3 "2026-03-02T13:09:13Z")

</div>

Hi @adamitde7 , welcome to Sailpoint developer forum.

from error message, it seems that Group name or type is configuration is not matching with target system.

You can check Schema configuration for groups and verify with target system (Azure AD)

---

<div class="post-metadata">

**Author:** ![neel193](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/neel193/32/34038_2.png) [@neel193](https://developer.sailpoint.com/discuss/u/neel193)\
**Post date:** [March 2, 2026, 1:11pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/4 "2026-03-02T13:11:47Z")

</div>

@adamitde7 Could you please share the plan xml? And are you trying to create a group or provision a group to the user?

---

<div class="post-metadata">

**Author:** ![adamitde7](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@adamitde7](https://developer.sailpoint.com/discuss/u/adamitde7)\
**Post date:** [March 2, 2026, 2:05pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/5 "2026-03-02T14:05:26Z")

</div>

`<ProvisioningPlan targetIntegration="Entra ID Dev" trackingId="2aea47b5108e48cbb5b0e1016739692c"> <ObjectRequest application="Entra ID Dev" nativeIdentity="9dca3afa-9916-4349-acc8-3a49c59db7d3" op="Create" type="group"> <AttributeRequest name="displayName" op="Set" value="Group-For-Testing10"/> <AttributeRequest name="mailNickname" op="Set" value="test10"/> <AttributeRequest name="description" op="Set" value="Description for test 10"/> <AttributeRequest name="teamsEnabled" op="Set"> <Value> <Boolean></Boolean> </Value> </AttributeRequest> <AttributeRequest name="securityEnabled" op="Set"> <Value> <Boolean>true</Boolean> </Value> </AttributeRequest> <AttributeRequest name="groupTypes" op="Set" value="Security"/> <ProvisioningResult status="failed"> <Errors> <Message key="sailpoint.connector.ConnectorException: Exception occurred. Error message - " type="Error"/> </Errors> </ProvisioningResult> </ObjectRequest> </ProvisioningPlan>`

This is the plan and I am creating the groups

---

<div class="post-metadata">

**Author:** ![neel193](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/neel193/32/34038_2.png) [@neel193](https://developer.sailpoint.com/discuss/u/neel193)\
**Post date:** [March 2, 2026, 4:41pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/6 "2026-03-02T16:41:01Z")

</div>

@adamitde7 This is a compiled plan and looks good to me. Could you please also share the initial plan? and application xml for review.

---

<div class="post-metadata">

**Author:** ![kumarSinghM](https://avatars.discourse-cdn.com/v4/letter/k/ecb155/32.png) [@kumarSinghM](https://developer.sailpoint.com/discuss/u/kumarSinghM)\
**Post date:** [March 2, 2026, 6:06pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/7 "2026-03-02T18:06:01Z")

</div>

@adamitde7

Use the code below:

Change the attribute request as per your requirement

```java
/***
	 * 
	 * @param plan
	 * @param groupCN
	 * @return
	 */
	private WorkflowLaunch launchLCMProv(ProvisioningPlan plan, String groupCN) {
		// TODO Auto-generated method stub
		logger.error("Exiting method launchLCMProv");
		String satus = null;
		WorkflowLaunch launch = null;
		
		try {
			if(null != plan) {
				String workflowName = "Entitlement Update";
				WorkflowLaunch wfLaunch = new WorkflowLaunch();
				Workflow workflow = context.getObjectByName(Workflow.class, workflowName);
				if(null != workflow) {
					wfLaunch.setWorkflowName(workflow.getName());
					wfLaunch.setWorkflowRef(workflow.getName());
					Workflower workflower = new Workflower();
					Map launchArgsMap = new HashMap();
					launchArgsMap.put("plan", plan);
					launchArgsMap.put("forgroundProvisioning", "true");
					launchArgsMap.put("approvalScheme", "none");
					launchArgsMap.put("notificationScheme", "none");
					launchArgsMap.put("noTriggers", "true");
					launchArgsMap.put("trace", "true");
					wfLaunch.setVariables(launchArgsMap);
					launch = workflower.launch(wfLaunch);
					
					context.decache(workflow);
				}
			}else {
				logger.error("Plan is null");
			}
		}catch(Exception excp) {
			
		}
		
		logger.error("Exiting method launchLCMProv");
		return launch;
	}

/***
	 * 
	 * @param groupCN(DN of the group Name)
	 * @param dedicatedGroupDN (DN-groupName)
	 * @param launcher
	 * @param appName
	 * @param roleName
	 * @return
	 */
	public Object createGroupPlan(String groupCN, String dedicatedGroupDN, String launcher, String appName, String roleName) {
		logger.info("Entering method createGroupPlan");
		boolean isCreateGrpSuccess = false;
		
		try {
			ProvisioningPlan plan = new ProvisioningPlan();
			ObjectRequest objReq = new ObjectRequest();
			
			objReq.setApplication(appName);
			objReq.setType("group");
			objReq.setOp(ProvisioningPlan.ObjectOperation.Create);
			objReq.setNativeIdentity(groupCN);
			objReq.add(new ProvisioningPlan.AttributeRequest("distinguishedName", ProvisioningPlan.Operation.Set, groupCN));
			objReq.add(new ProvisioningPlan.AttributeRequest("sAMAccountName", ProvisioningPlan.Operation.Set, getSamAccountName(groupCN)));
			objReq.add(new ProvisioningPlan.AttributeRequest("description", ProvisioningPlan.Operation.Set, "Created by IIQ"));
			objReq.add(new ProvisioningPlan.AttributeRequest("msDS-PrincipalName", ProvisioningPlan.Operation.Set, appName.toUpperCase()+"\\"+getSamAccountName(groupCN)));
			
			plan.add(objReq);
			WorkflowLaunch wfLaunch = launchLCMProv(plan, groupCN);
			
			boolean isSuccess = getErrorMessageFromWorkflow(wfLaunch, groupCN, launcher, roleName);
			if(!isSuccess) {
				logger.error("Error while creating the group");
			}else {
				isCreateGrpSuccess = true;
			}
			
		}catch(Exception exception) {
			logger.error("Exception occured "+ exception.getMessage());
			isCreateGrpSuccess = false;
			throw exception;
		}
		
		
		logger.info("Exiting method createGroupPlan");
		return isCreateGrpSuccess;
	}

```

---

<div class="post-metadata">

**Author:** ![paul\_hilchey](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/paul_hilchey/32/24080_2.png) [@paul\_hilchey](https://developer.sailpoint.com/discuss/u/paul_hilchey)\
**Post date:** [March 2, 2026, 6:43pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/9 "2026-03-02T18:43:50Z")

</div>

Hi @adamitde7 there is a setting “createGroupTimelag” you could add to your application configuration. It should be a number of seconds; you might try it with 120 and see if that helps.

---

<div class="post-metadata">

**Author:** ![Peddapolu](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Peddapolu](https://developer.sailpoint.com/discuss/u/Peddapolu)\
**Post date:** [March 2, 2026, 9:11pm UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/10 "2026-03-02T21:11:30Z")

</div>

Hi @kumarSinghM ,

Set groupTypes values (Security, Office 365) in the AttributeRequest, as it is a mandatory field when creating SailPoint groups for the Azure connector.

Thanks,

PVR.

---

<div class="post-metadata">

**Author:** ![adamitde7](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@adamitde7](https://developer.sailpoint.com/discuss/u/adamitde7)\
**Post date:** [March 3, 2026, 8:10am UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/11 "2026-03-03T08:10:08Z")

</div>

true Security

This is the plan.

---

<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 2, 2026, 8:10am UTC](https://developer.sailpoint.com/discuss/t/sailpoint-connector-objectnotfoundexception-in-azure-active-directory-group-creation/197975/12 "2026-05-02T08:10:58Z")

</div>

Closed on May 2, 2026, 8:10am UTC

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