none
Triggering a c# standalone code through FIM Sync while syncing a user from FIM to destination Data store. RRS feed

  • Question

  • Hi,

    I am syncing the users present in FIM to Google Apps. For this i am using Generic REST API MA. I am able to provision a user to Google successfully. But I am unable to update some attributes at Google through attribute flows. So, we have a standalone c# code for updating those attributes like email alias. But i am not aware how to trigger that code on provisioning a user from FIM to google.

    Is there any way of trigger a satndalone code post success provision of a user from FIM Sync.

    Thanks

    Prasanthi.

    Thursday, April 16, 2015 10:08 AM

All replies

  • Hi
    I think you could easily create your custom Event in the application log when your REST API MA has created a new account. Then you could use Windows built-in Feature to trigger your standalone program whenever this specific Event was created.

    Henry

    Sunday, April 19, 2015 3:40 PM
  • Or you could use another instance of the Generic REST API MA and write your own plugin to it that handles the aliases. That's probably the cleanest and most security (provisioning wise) approach.
    Monday, April 20, 2015 6:16 AM
  • Hi,

    Thank you,

    Could you please explain "Or you could use another instance of the Generic REST API MA and write your own plugin to it that handles the aliases. That's probably the cleanest and most security (provisioning wise) approach.". I am not getting a clean picture. Can you elaborate little bit.

    Thanks 

    Prasanthi.

    Tuesday, April 21, 2015 6:52 AM
  • Sure. I guess you're using naohiro's Generic REST MA for FIM. 

    In this case, you'll need to write your own implementation of this class. You could also add functionality in this class to handle aliases

    https://restmafim.codeplex.com/SourceControl/latest#PluginTemplate/Template/FIM_Interface.cs

    Instead of using the https://www.googleapis.com/admin/directory/v1/users service you would need to use this service:

    https://developers.google.com/admin-sdk/directory/v1/reference/#Users.aliases

    Tuesday, April 21, 2015 7:32 AM
  • Hi,

    So, i need to create one more new Generic Rest API MA by changing the above line. And where should i add my code? Should i add my standalone code in this class or simply changing the url to  "https://developers.google.com/admin-sdk/directory/v1/reference/#Users.aliases" staisfies the updates for multivalued attributes at Google (like email aliases, organization address etc..). Please suggest.

    Thanks 

    Prasanthi.

    Wednesday, April 22, 2015 11:57 AM
  • Hi,

    I have written the functionality for satisfying multivalued attributes like "emails", "externalIDs" etc.. in the class FIM_Interface.cs. Now, how to create another instance of Generic Rest API MA using this new changed Interface FIM_Interface.cs.

    As i am not aware of this custom connector please help me out.

    Thanks

    Prasanthi.

    Friday, April 24, 2015 8:57 AM
  • Me neither. Referring to the documentation here:

    https://restmafim.codeplex.com/documentation

    You need to replace the "Plugin Library Configuration" DLL.

    If you added the functionality to the current plugin there is no more action to take. 

    If you implemented the new functionality in an entirely new Plugin library, you need to create another instance of the MA, and then create the appropriate sync rules for that MA.




    Friday, April 24, 2015 11:42 AM