Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
template-job-list.xml
<!-- Create --- Create Email Template -->
<ResourceOperation operation="Add Update" resourceType="EmailTemplate" id="---Create">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MT:---Create</AttributeOperation>
<AttributeOperation operation="replace" name="Description">--- User Creation Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailTemplateType">Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailBody" type="file">#PATH#Templates\---USERCREATED.HTML</AttributeOperation>
<AttributeOperation operation="replace" name="EmailSubject">--- User Creation Notification</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Move In Email Template -->
<ResourceOperation operation="Add Update" resourceType="EmailTemplate" id="---MoveIn">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MT:---MoveIn</AttributeOperation>
<AttributeOperation operation="replace" name="Description">--- User Move In Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailTemplateType">Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailBody" type="file">#PATH#Templates\---USERMOVEDIN.HTML</AttributeOperation>
<AttributeOperation operation="replace" name="EmailSubject">--- User Move Notification</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Move Out Email Template -->
<ResourceOperation operation="Add Update" resourceType="EmailTemplate" id="---Moveout">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MT:---MoveOut</AttributeOperation>
<AttributeOperation operation="replace" name="Description">--- User Move Out Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailTemplateType">Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailBody" type="file">#PATH#Templates\---USERMOVEDOUT.HTML</AttributeOperation>
<AttributeOperation operation="replace" name="EmailSubject">--- User Move Notification</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Disable Email Template -->
<ResourceOperation operation="Add Update" resourceType="EmailTemplate" id="---Disabled">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MT:---Disabled</AttributeOperation>
<AttributeOperation operation="replace" name="Description">--- User Disabled Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailTemplateType">Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailBody" type="file">#PATH#Templates\---USERDISABLED.HTML</AttributeOperation>
<AttributeOperation operation="replace" name="EmailSubject">--- User Disabled Notification</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Deletion Email Template -->
<ResourceOperation operation="Add Update" resourceType="EmailTemplate" id="---Deletion">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MT:---Deletion</AttributeOperation>
<AttributeOperation operation="replace" name="Description">--- User Deletion Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailTemplateType">Notification</AttributeOperation>
<AttributeOperation operation="replace" name="EmailBody" type="file">#PATH#Templates\---USERDELETION.HTML</AttributeOperation>
<AttributeOperation operation="replace" name="EmailSubject">--- User Deletion Notification</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Create Workflow Definition -->
<ResourceOperation operation="Add Update" resourceType="WorkflowDefinition" id="---CreateWF">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__WF:---UserCreationNotification</AttributeOperation>
<AttributeOperation operation="replace" name="Description">User creation notification for ---</AttributeOperation>
<AttributeOperation operation="replace" name="XOML" type="file">#PATH#Templates\---CREATE.XML</AttributeOperation>
<AttributeOperation operation="replace" name="RequestPhase">Action</AttributeOperation>
<AttributeOperation operation="replace" name="RunOnPolicyUpdate">false</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Move In Workflow Definition -->
<ResourceOperation operation="Add Update" resourceType="WorkflowDefinition" id="---MoveInWF">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__WF:---UserMoveInNotification</AttributeOperation>
<AttributeOperation operation="replace" name="Description">User Moved In notification for ---</AttributeOperation>
<AttributeOperation operation="replace" name="XOML" type="file">#PATH#Templates\---MOVEIN.XML</AttributeOperation>
<AttributeOperation operation="replace" name="RequestPhase">Action</AttributeOperation>
<AttributeOperation operation="replace" name="RunOnPolicyUpdate">false</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Move Out Workflow Definition -->
<ResourceOperation operation="Add Update" resourceType="WorkflowDefinition" id="---MoveOutWF">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__WF:---UserMoveOutNotification</AttributeOperation>
<AttributeOperation operation="replace" name="Description">User Moved Out notification for ---</AttributeOperation>
<AttributeOperation operation="replace" name="XOML" type="file">#PATH#Templates\---MOVEOUT.XML</AttributeOperation>
<AttributeOperation operation="replace" name="RequestPhase">Action</AttributeOperation>
<AttributeOperation operation="replace" name="RunOnPolicyUpdate">false</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Disabled Workflow Definition -->
<ResourceOperation operation="Add Update" resourceType="WorkflowDefinition" id="---DisabledWF">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__WF:---UserDisablementNotification</AttributeOperation>
<AttributeOperation operation="replace" name="Description">User Disabled notification for ---</AttributeOperation>
<AttributeOperation operation="replace" name="XOML" type="file">#PATH#Templates\---DISABLED.XML</AttributeOperation>
<AttributeOperation operation="replace" name="RequestPhase">Action</AttributeOperation>
<AttributeOperation operation="replace" name="RunOnPolicyUpdate">false</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Deletion Workflow Definition -->
<ResourceOperation operation="Add Update" resourceType="WorkflowDefinition" id="---DeletionWF">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__WF:---UserDeletionNotification</AttributeOperation>
<AttributeOperation operation="replace" name="Description">User Deletion notification for ---</AttributeOperation>
<AttributeOperation operation="replace" name="XOML" type="file">#PATH#Templates\---DELETION.XML</AttributeOperation>
<AttributeOperation operation="replace" name="RequestPhase">Action</AttributeOperation>
<AttributeOperation operation="replace" name="RunOnPolicyUpdate">false</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Set -->
<ResourceOperation operation="Add Update" resourceType="Set" id="---Set">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__Set:--- Active Users</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Contains all Active Users in the --- OU</AttributeOperation>
<AttributeOperation operation="replace" name="Filter" type="filter">/Person[(adOU = 'OU=---,DC=blah,DC=blah,DC=ac,DC=uk') and (EmployeeStatus = 'ENABLED')]</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Existing Users Set -->
<ResourceOperation operation="Add Update" resourceType="Set" id="---EUSet">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__Set:--- Existing Users</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Contains all Users in the --- OU, whose Portal CreationDate date is prior to Today</AttributeOperation>
<AttributeOperation operation="replace" name="Filter" type="filter">/Person[(CreatedTime < fn:current-dateTime()) and (adOU = 'OU=---,DC=blah,DC=blah,DC=ac,DC=uk')]</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Disabled Set -->
<ResourceOperation operation="Add Update" resourceType="Set" id="---DisabledSet">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__Set:--- Disabled Users</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Contains all Disabled Users in the --- OU</AttributeOperation>
<AttributeOperation operation="replace" name="Filter" type="filter">/Person[(adOU = 'OU=---,DC=blah,DC=blah,DC=ac,DC=uk') and (EmployeeStatus = 'DISABLED')]</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- Deleted Set -->
<ResourceOperation operation="Add Update" resourceType="Set" id="---DeletedSet">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__Set:--- Deleted Users</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Contains all Users in the --- OU, whose end date has passed plus 180 days</AttributeOperation>
<AttributeOperation operation="replace" name="Filter" type="filter">/Person[(EmployeeEndDate < op:subtract-dayTimeDuration-from-dateTime(fn:current-dateTime(), xs:dayTimeDuration('P180D'))) and (InScopeForDeletion = True) and (adOU = 'OU=---,DC=blah,DC=blah,DC=ac,DC=uk')]</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- User Creation MPR -->
<ResourceOperation operation="Add Update" resourceType="ManagementPolicyRule" id="---UserCreationMPR">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MPR:---UserCreation</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Triggers the "##xmlref:---CreateWF:DisplayName##" workflow when a user account transitions into the "##xmlref:---Set:DisplayName##" set</AttributeOperation>
<AttributeOperation operation="replace" name="ActionParameter">*</AttributeOperation>
<AttributeOperation operation="replace" name="ActionType">TransitionIn</AttributeOperation>
<AttributeOperation operation="replace" name="ActionWorkflowDefinition" type="xmlref">---CreateWF</AttributeOperation>
<AttributeOperation operation="replace" name="Disabled">false</AttributeOperation>
<AttributeOperation operation="replace" name="GrantRight">false</AttributeOperation>
<AttributeOperation operation="replace" name="ManagementPolicyRuleType">SetTransition</AttributeOperation>
<AttributeOperation operation="replace" name="ResourceFinalSet" type="xmlref">---Set</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- User Move In MPR -->
<ResourceOperation operation="Add Update" resourceType="ManagementPolicyRule" id="---UserMoveInMPR">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MPR:---UserMoveIn</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Triggers the "##xmlref:---MoveInWF:DisplayName##" workflow when a user account transitions into the "##xmlref:---EUSet:DisplayName##" set</AttributeOperation>
<AttributeOperation operation="replace" name="ActionParameter">*</AttributeOperation>
<AttributeOperation operation="replace" name="ActionType">TransitionIn</AttributeOperation>
<AttributeOperation operation="replace" name="ActionWorkflowDefinition" type="xmlref">---MoveInWF</AttributeOperation>
<AttributeOperation operation="replace" name="Disabled">false</AttributeOperation>
<AttributeOperation operation="replace" name="GrantRight">false</AttributeOperation>
<AttributeOperation operation="replace" name="ManagementPolicyRuleType">SetTransition</AttributeOperation>
<AttributeOperation operation="replace" name="ResourceFinalSet" type="xmlref">---EUSet</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- User Move Out MPR -->
<ResourceOperation operation="Add Update" resourceType="ManagementPolicyRule" id="---UserMoveOutMPR">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MPR:---UserMoveOut</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Triggers the "##xmlref:---MoveOutWF:DisplayName##" workflow when a user account transitions out of the "##xmlref:---EUSet:DisplayName##" set</AttributeOperation>
<AttributeOperation operation="replace" name="ActionParameter">*</AttributeOperation>
<AttributeOperation operation="replace" name="ActionType">TransitionOut</AttributeOperation>
<AttributeOperation operation="replace" name="ActionWorkflowDefinition" type="xmlref">---MoveOutWF</AttributeOperation>
<AttributeOperation operation="replace" name="Disabled">false</AttributeOperation>
<AttributeOperation operation="replace" name="GrantRight">false</AttributeOperation>
<AttributeOperation operation="replace" name="ManagementPolicyRuleType">SetTransition</AttributeOperation>
<AttributeOperation operation="replace" name="ResourceCurrentSet" type="xmlref">---EUSet</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- User Disable MPR -->
<ResourceOperation operation="Add Update" resourceType="ManagementPolicyRule" id="---UserDisableMPR">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MPR:---UserDisablement</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Triggers the "##xmlref:---DisabledWF:DisplayName##" workflow when a user account transitions into the "##xmlref:---DisabledSet:DisplayName##" set</AttributeOperation>
<AttributeOperation operation="replace" name="ActionParameter">*</AttributeOperation>
<AttributeOperation operation="replace" name="ActionType">TransitionIn</AttributeOperation>
<AttributeOperation operation="replace" name="ActionWorkflowDefinition" type="xmlref">---DisabledWF</AttributeOperation>
<AttributeOperation operation="replace" name="Disabled">false</AttributeOperation>
<AttributeOperation operation="replace" name="GrantRight">false</AttributeOperation>
<AttributeOperation operation="replace" name="ManagementPolicyRuleType">SetTransition</AttributeOperation>
<AttributeOperation operation="replace" name="ResourceFinalSet" type="xmlref">---DisabledSet</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
<!-- Create --- User Deletion MPR -->
<ResourceOperation operation="Add Update" resourceType="ManagementPolicyRule" id="---UserDeletionMPR">
<AnchorAttributes>
<AnchorAttribute>DisplayName</AnchorAttribute>
</AnchorAttributes>
<AttributeOperations>
<AttributeOperation operation="replace" name="DisplayName">__MPR:---UserDeletion</AttributeOperation>
<AttributeOperation operation="replace" name="Description">Triggers the "##xmlref:---DeletionWF:DisplayName##" workflow when a user account transitions into the "##xmlref:---DeletedSet:DisplayName##" set</AttributeOperation>
<AttributeOperation operation="replace" name="ActionParameter">*</AttributeOperation>
<AttributeOperation operation="replace" name="ActionType">TransitionIn</AttributeOperation>
<AttributeOperation operation="replace" name="ActionWorkflowDefinition" type="xmlref">---DeletionWF</AttributeOperation>
<AttributeOperation operation="replace" name="Disabled">false</AttributeOperation>
<AttributeOperation operation="replace" name="GrantRight">false</AttributeOperation>
<AttributeOperation operation="replace" name="ManagementPolicyRuleType">SetTransition</AttributeOperation>
<AttributeOperation operation="replace" name="ResourceFinalSet" type="xmlref">---DeletedSet</AttributeOperation>
</AttributeOperations>
</ResourceOperation>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.