none
IFF Condition against employeeType RRS feed

  • Question

  • Dear Friends,

    I am facing an strange issue in outbound Sync rule for provisioning of users in AD. I have set the following two conditions on to create users in two different OUs however only first condition works and the second doesn't work. There is no error message and both OUs are checked in ADMA container and same required permission assigned.

    IFF(CustomExpression(Eq(employeeType,"Full Time Employee")),(CustomExpression "CN="+accountName+",OU=Employee,DC=dev,DC=local"),(CustomExpression(Null()))+IFF(CustomExpression(Eq(employeeType,"Contractor")),(CustomExpression("CN="+accountName+",OU=Contractor,DC=dev,DC=local"),(CustomExpression(Null())

    I have created through the GUI options and the details are as follow:

    1.
    Function
    Function name
    IFF
    condition:Boolean
    Eq(employeeType,"Full Time Employee")
    ValueTrue:Object
    "CN="+accountName+",OU=Employee,DC=dev,DC=local"
    ValueFalse:Object
    Null()

    2.
    Function

    Function name
    IFF
    condition:Boolean
    Eq(employeeType,"Contractor")
    ValueTrue:Object
    "CN="+accountName+",OU=Contractor,DC=dev,DC=local"
    ValueFalse:Object
    Null()

    Regards
    Sarwar


    Sarwar


    • Edited by naveeds Thursday, May 15, 2014 3:42 AM edit
    Thursday, May 15, 2014 3:39 AM

Answers

  • Hi,

    There was nothing wrong with the Sync. rule and it works irrespective of no. of conditions. Actually the issue was MPR and the SET in it which has filter to provision only one employee type. Anyways Thanks everyone for their responses.

    Regards

    sarwar

     


    Sarwar

    • Marked as answer by naveeds Friday, July 4, 2014 3:30 AM
    Friday, May 16, 2014 6:58 AM

All replies

  • Have you tried to put your second condition inside the first conditions ValueFalse:Object

    So instead this:

    ValueFalse:Object
    Null()

    Try this:

    ValueFalse:Object

    Function
    Function name
    IFF
    condition:Boolean
    Eq(employeeType,"Contractor")
    ValueTrue:Object
    "CN="+accountName+",OU=Contractor,DC=dev,DC=local"
    ValueFalse:Object
    Null()

    Thursday, May 15, 2014 4:35 AM
  • Thanks Gaston for your suggestion however I am not very good in scripting therefore would you please elaborate further.


    Sarwar

    Thursday, May 15, 2014 4:53 AM
  • Hello,

    I will simply put this in a CustomExpression

    IFF(Eq(employeeType,"Full Time Employee"),"CN="+accountName+",OU=Employee,DC=dev,DC=local",IFF(Eq(employeeType,"Contractor"),"CN="+accountName+",OU=Contractor,DC=dev,DC=local",Null()))

    Regards,


    Sylvain

    Thursday, May 15, 2014 9:41 AM
  • Hi,

    There was nothing wrong with the Sync. rule and it works irrespective of no. of conditions. Actually the issue was MPR and the SET in it which has filter to provision only one employee type. Anyways Thanks everyone for their responses.

    Regards

    sarwar

     


    Sarwar

    • Marked as answer by naveeds Friday, July 4, 2014 3:30 AM
    Friday, May 16, 2014 6:58 AM