FIM IIF Custom Expression

Hello,

I'm trying to write a custom IIF statement. I want employees according to their Employee Type to be placed in certain groups. I have an example code I wrote up, but it seems to give me an error:

(IIF(Eq(EmployeeType,"Contractor"),"CN=ACCOUNTS",OU=HOU,OU=Groups,DC=FIM-TEST"))

Is this correct?

June 3rd, 2015 12:17pm

Not its not. 

Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 1:59pm

What is the statement supposed to do? In plain English.
June 3rd, 2015 2:06pm

The statement should: Place any employee whose Employee Type is Contractor in a group called FIM-Test. This will also be applied to when creating a new user. 
Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 2:09pm

Where is test mentioned here anywhere in your statement.? You also need an else.

June 3rd, 2015 2:10pm

The group is called "FIM-Test"
Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 2:11pm

How are you placing the user into the FIM-TEST?? Where is this IFF being executed.

This statement says, if you are contractor, add to FIM-TEST, else do nothing.  But I am not clear on the plumbing of this method you want to use. Where is this IFF executed.

(IIF(Eq(EmployeeType,"Contractor"),"FIM-TEST",""))

June 3rd, 2015 2:14pm

When I go to create a new User in FIM, and when I select the "Employee Type" and  I select Contractor, I want this User to be added into a Distribution Group called "FIM-Test". I am not familiar with IIF statements for FIM. So I'm confused on how to write it.
Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 2:23pm

You cannot add a user to a group like that.

You need to make the group FIM-TEST dynamic and add a statement, EmployeeType=Contractor

This will automatically add a user to that group if EmployeeType=Conctractor and remove if the type changes.

June 3rd, 2015 2:27pm

Nevermind, got it.

Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 2:37pm

There's no way I can have a sync rule in place for AD User Outbound/Inbound that places a new user into a certain group based on employee type?
June 3rd, 2015 2:39pm

No,

I have explained the Group Membership to you on another thread. Sync rule only synchs the groups. Membership is done within FIM.

I don't think you can change a manual group to dynamic, so you will have to delete it and recreate it as dynamic. You need to make sure to join the groups and ensure the AD membership does not change.

And again, as before suggested to you - If you are not familiar with these concepts, be careful!

Free Windows Admin Tool Kit Click here and download it now
June 3rd, 2015 2:42pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics