次の方法で共有


Introducing Synchronization Rules - Part 1

 Prior to FIM 2010, which introduced the concept of “Codeless Provisioning” (Using Sync rules) there was only 1 way to provision accounts / objects from 1 Directory to another. This was accomplished via “Custom Code” (Rules extensions) which we’re usually written with a Program such as Visual Studios which you would compile the code to build a .dll file which would then be added to the rules extension directory of the Synchronization Service. Additionally you would have to configure the Sync Engine to utilize this .dll when provisioning objects as well as every MA would require attribute flows associated with it. One negative consequence of rules extensions was the need to recompile the code whenever a change was needed to the Synchronization of attributes or resources. After recompiling the .DLL the rules extension would need to be reapplied and a Full Sync would need to be applied to commit the new or updated rules extension. With Synchronization Rules a change can be made to an individual Sync Rule and on the next import on the FIMMA you could run a preview on the change which is essentially a full sync on the individual (Sync Rule) object and from there you could continue normal run cycles. The difference is possible Minutes to commit a change as opposed to possibly hours. Synchronization rules are a bridge for data into and out of the Metaverse. Inbound Sync Rules flow data into the Metaverse and outbound Sync Rules flow data out of the Metaverse. Another option when creating Synchronization Rules is to create an Inbound/Outbound Synchronization rule that is a combined Sync Rule. In most cases I keep my Inbound and Outbound rules separate, not for any particular reason but it appears to be easier to read and discuss with management when reviewing the environment.

When creating a Sync Rule you associate the Sync Rule with an MA (Management Agent) and a resource. You can associate multiple Sync Rules to the same MA but be very careful not have multiple sync rules managing the same resources with the same attributes. If you have 2 Sync rules connected to the Active Directory Management Agent and both Sync Rules are managing User Resources, it is imperative that the same attributes are not being managed in each Sync Rule especially if 1 Sync rule is doing something different to the same attribute as another. For example if both of the Sync Rules previously discussed were outbound sync rules and the first sync rule built the displayName using (First Name Last Name) and the second Sync Rule built the displayName as (Last Name First name) you can depending on your Sync Rule Precedence which will be discussed later you could have these syncrules competing on updating the display name and each sync could potentially cause a situation where the attribute is continually being changed because of the order which the synchronization rules are being processed. Synchronization Rules always flow data into or out of the Metaverse in the direction of the associated Management Agent, for example an Inbound Synchronization rule always flows data from the Management Agent to the Metaverse. With that being said the Outbound Synchronization Rule always flows data from the Metaverse to the Management Agent. You will never create a Sync Rule that is associated with the FIMMA, this is for several reasons the first is once sync rules are created in the FIM Portal they need to exist in the Metaverse prior managing objects, if a Sync Rule was required to get data from the FIMMA to the Metaverse how would the Syncrule get into the metaverse. This FIMMA uses Direct Attribute Flows configured on the actual FIMMA (FIM Management Agent) It is also important to note that if you are using a Hybrid Sync Solution which includes Synchronization Rules and Rules Extensions and the same attribute is being managed for the same resource with each by default rules extensions always win. 

In order to manage new objects they must first be projected into the Metaverse and then Provisioned into the Management Agent that the Sync Rule is associated with.

Provisioning into the FIM Portal is handled automatically once the object makes it in the Metaverse. Provisioning of objects is handled on the Outbound Sync Rule by selecting the check box Create Object in External Data source. Additionally in the Synchronization Service under options there is an Option to turn off Sync Rule Provisioning which will be discussed in detail later. On the Inbound Sync Rule you will have an option for creating objects in FIM and this must be checked in order to project new objects into the Metaverse. Once objects are joined or projected in the Metaverse the sync rule will manage the objects it synchronizes regardless of the Checkbox selections, this is of course if the object in the Metaverse meets the requirements to be managed by the Sync Rule.

 

There are 2 Types of Synchronization Rules:

  1. Traditional
  2. Scoping Filter

 

  • Outbound Sync Rules - Can utilize both types of Syncrules

Traditional Outbound Sync Rules

These Sync rules Require a Workflow that is associated with the Synchronization Rule and an MPR that when an event occurs such as a new user being created or an object transitions into a set, the MPR triggers the associated workflow which stamps an “ERE” (Expected Rule Entry) on the object which essentially tells the object which Sync rule in the metaverse will need to be applied to the object. It may help to think of the ERE is a Bus Ticket and without that ticket the object is stranded in the Metaverse or for this analogy the bus station.

Scoping Filter based Sync Rules

Using an inclusive “Filter” to determine which objects within the Metaverse this particular sync rule will be applied to all objects that match the definition of the filter and does not require an ERE. It may help to think of this type of Sync rule as the person at the bus station that would normally collect those bus tickets but this time instead of asking the passengers for a bus ticket they allow passengers that meet a specified criteria such as all passengers wearing a blue shirt can ride this bus and if the passenger is wearing a yellow shirt they are not allowed on the bus. Because ERE’s are not needed so is the need for creating a workflow and MPR are also not required. It is important not to confuse this filter with the filter used on management agents. The management agent filter is exclusive which means that the MA (Management Agent) excludes all objects that match the criteria of the filter being applied to the MA and the Sync Rule Filter is Inclusive which means only objects that match the filter criteria are applied. Additionally the Sync rule filter can only be defined as an “AND” statement where are criteria would have to meet which is different from the MA Filter which can be configured as “AND / OR” You One of the key benefits of using this type of Sync Rule is the Traditional Sync Rule which add ERE’s to all objects in the Metaverse which in turn adds to the amount of objects that must be synchronized so if you have 100,000 users being synchronized you have 100,000 ERE’s at minimal to be associated with those objects which now doubles the amount of objects in your Metaverse.

 It may also be helpful to note that no additional scope is required to utilize the scoping filter sync rule, It would be recommended to have well defined scope filters to control what objects the sync rule applies to but if you just want a general sync rule that applies to all objects of a particular resource type than you could configure the scope using just the mapped resource type in the image below. This sync rule would manage any organizationalUnit resource object that is gets into the Metaverse.

Having additional Outbound Scoping Filter criteria populated would ensure that only objects that meet the criteria set in the Outbound System Scoping Filter criteria section of the Scope tab would be managed by the sync rule. Having well defined Outbound System Scoping Filter criteria will reduce the likelihood of having Outbound Synchronization Errors. The most common Synchronization Rule Error occurs because objects that enter the Metaverse may meet the scoping criteria of the sync rule prior to having all necessary attributes populated for provisioning. For example if you have an MA that is a source for your Data and it includes First Name, Last Name, and Department and once the user object enters the portal you have workflows that would build the Account Name and DN and the Outbound User Sync Rule is a scoping filter sync rule that doesn't have additional scoping filter criteria that verifies that the objects has all necessary attributes populated than the sync rule would be applied to the new users objects as during the provisioning process into the Metaverse. This would then error because the object would be processed by the Sync rule which would not yet have populated values for Account Name and DN because the object has not yet made it in the FIM portal.

Traditional Inbound Sync Rules

Not like the Traditional Outbound Sync rule the Traditional Inbound only requires the Synchronization Rule to be created and does not require additional Workflows or MPR’s. By default when creating an inbound sync rule, all objects that enter the Metaverse that match the resource type of the inbound sync rule are controlled by the inbound sync rule of that resource type with the exception of applying a scoping filter which.

Inbound Scoping Filter

When configuring an inbound sync rule with a scoping filter only resource objects that match the filter criteria of that sync rule will be applied.

 

Continued on Introducing Synchronization Rules - Part 2

17 - Introducing Synchronization Rules.pdf

Comments

  • Anonymous
    July 03, 2015
    How would you recommend filtering "empty" groups e.g. no members from flowing into AD? It seems that maybe a custom attribute may be required because there doesn't seem to be a way to test for the presence of group members

  • Anonymous
    July 07, 2015
    GreenGoblin74... I am testing this and as soon as I have a solution I will respond. BTW do you have an Custom Workflow Activity dll installed?