# How to trigger Manager Certifications in Custom Workflow

**URL:** <https://developer.sailpoint.com/discuss/t/how-to-trigger-manager-certifications-in-custom-workflow/101097>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq, workflows\
**Created:** [February 15, 2025, 3:56pm UTC](https://developer.sailpoint.com/discuss/t/how-to-trigger-manager-certifications-in-custom-workflow/101097 "2025-02-15T15:56:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![apar\_pruthi](https://avatars.discourse-cdn.com/v4/letter/a/b4bc9f/32.png) [@apar\_pruthi](https://developer.sailpoint.com/discuss/u/apar_pruthi)\
**Post date:** [February 15, 2025, 3:56pm UTC](https://developer.sailpoint.com/discuss/t/how-to-trigger-manager-certifications-in-custom-workflow/101097/1 "2025-02-15T15:56:29Z")

</div>

## 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 a use case to add a Manager Certification in an existing custom Contractor to Employee workflow.

Looking for some reference code or the process on how to achieve this requirement.

---

<div class="post-metadata">

**Author:** ![SanjeevIAM](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/sanjeeviam/32/21695_2.png) [@SanjeevIAM](https://developer.sailpoint.com/discuss/u/SanjeevIAM)\
**Post date:** [February 17, 2025, 8:19am UTC](https://developer.sailpoint.com/discuss/t/how-to-trigger-manager-certifications-in-custom-workflow/101097/2 "2025-02-17T08:19:24Z")

</div>

You can use something like this. Some of it may have changed in latest version but this was working fine few years ago on a previous version.

```auto
            	Identity requestor = context.getObject(Identity.class, launcher); 
            	Identity identity = context.getObject(Identity.class, identityName); 
            	// Create new Scheduler 
            	CertificationScheduler scheduler = new CertificationScheduler(context); 
            	// Create Schedule and set run now to true to launch the certification immediately 
            	CertificationSchedule schedule = scheduler.initializeScheduleBean(requestor, Certification.Type.Identity); 
            	schedule.setRunNow(true); 

            	CertificationDefinition definition = schedule.getDefinition(); 
				//Use all the methods applicable for your case available for CertificationDefinition in order to set configurations
				 definition.setName("Movers Certification for : " + identity.getDisplayableName() + " [" + new Date().toString() + "]"); 
            	Identity certGroupOwner = context.getObjectByName(Identity.class, "spadmin"); 
            	definition.setCertificationOwner(certGroupOwner); 
                definition.setRequireReassignmentCompletion(true);
            	definition.setCertifierSelectionType(CertificationDefinition.CertifierSelectionType.Manual); 
            	if(userManager != null &amp;&amp; !userManager.isEmpty()){ 
            		definition.setCertifierName(userManager);
            		log.debug("UserManager");						
            	} else { 
            		definition.setCertifierName("spadmin"); 
            	} 
            	List identities = new ArrayList(); 
            	identities.add(identityName); 
            	definition.setIdentitiesToCertify(identities); 
            	definition.setIncludePolicyViolations(true);
				Integer activePeriodDurationAmount = 14;
				Date today = new Date();
            	log.debug(" The certification period is 14 days");			
            	definition.setActivePeriodDurationAmount(activePeriodDurationAmount.longValue()); 
            	definition.setActivePeriodDurationScale(Duration.Scale.Day);
				//..... set other configurations like reminder , escalation using available methods
				
				
				// Schedule task to run, passing in schedule (which has certification definition attached) 
            	TaskSchedule taskSchedule = scheduler.saveSchedule(schedule, false);

```

---

<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:** [April 18, 2025, 8:19am UTC](https://developer.sailpoint.com/discuss/t/how-to-trigger-manager-certifications-in-custom-workflow/101097/3 "2025-04-18T08:19:47Z")

</div>

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