How can i change an attribute value during import or export? RRS feed

  • Question

  • I'm using only the GALSYNC component of MIM 2016.

    There are 2 things I would like to achieve:

    1. update the displayname of a synced object.

    For example:

    The displayname of user object in forest A is 'ABC'.

    When it is synced to forest B, I want the displayname to show up as 'ABC (FixedString)'.

    2. update the targetaddress attribute in the destination forest. Note that the user object in source forest does not have the attribute populated.

    For example:

    user object ABC in forest A does not have the targetaddress attribute. The mail attribute is  

    When it is synced to forest B, I want the targetaddress attribute to be populated with Note the additional domain component has to be added. 

    How would I go about doing the above?

    • Edited by kfandst Friday, September 9, 2016 12:56 AM update
    Friday, September 9, 2016 12:48 AM

All replies

  • Hi

    If you want to use mim without the portal you will need to do some coding to be able to provision objects.

    in the case you described you need to create a rule extension DLL.

    in the first case it cud be like

    csentry["displayName"].value = mventry["displayName"].value + "(FixedString)"

    in the second case maybe you have the accountName or firstname as a value

    csentry["targetaddress"] = mventry["accountname"] + ""

    This is only examples in this attribute population and you need more code to gett it to work.

    • Proposed as answer by Nosh Mernacaj Monday, September 12, 2016 11:15 AM
    Friday, September 9, 2016 7:39 AM
  • Hi

    As Robin rightly says, you can write some code in the rules extension to export it, however the GALSYNC MA may already be utilising the default GALSYNC.dll which comes packaged out of the box at c:\program file\microsoft forefront identity manager\2010\synchronisation service\extensions\galsync.dll

    If the GALSYNC MA is using this, then the source code is available at c:\program file\microsoft forefront identity manager\2010\synchronisation service\source code however I'm unsure if it will be supported by MS if updated (check with them first maybe).

    If you do decide to add the new code, make sure you make a backup of the source code and the galsync.dll file first:)



    Friday, September 9, 2016 8:53 AM
  • Thanks for replying Robin.

    I've already used a custom galsync dll as described here .

    Can you point out which section of the code I can insert the code for attribute population?

    Tuesday, September 13, 2016 10:19 PM