I want to create the TRANSFORM that can create the users (employees and contractors) in different OUs in AD in create AD that are coming from different sources (workday for emp and beeline for contracotrs) .
1) Workday (For Employees) :
if the attrbute "unique_id = M001,M002,M003 then create the user in ou=employees
and if unique_id = M008 THEN make user in OU = CNTRACTORS LIKE THIS CN=$(lastname),$(firstname)(initialoffirstname),OU=Contractors,OU= Users,DC=XYZ ,DC=com
2) Beeline : (for contractors)
if the attribute master id = M001,M002,M003,M004 for the user then make the account in OU = contractor like below
Kindly give me full logic OF TRANSFORM and kindly give me the logic as well to create CN like this CN=$(lastname),$(firstname)(initialoffirstname),
For CN, you can use a pattern similar to what you have above, but you’ll likely need to create an identity attribute to store the first initial and add that to the template.
thanks for the response @suresh4iam i have one doubt
3, Create another identity attribute calculatedOu . is this attribute we need to make in both identity prifiles as well ? (wd and beeline) and after creating this calcultedou attribute do we need to map it with userCode AND THEN apply transform ?
is this attribute we need to make in both identity prifiles as well ?
Creating an identity attribute in one identity profile will automatically shows in other identity profiles.
do we need to map it with userCode AND THEN apply transform ? Yes, but it doesn’t have any impact since the input is taken from transform itself.
thanks a lot @suresh4iam its working as expected one more thing i just need to append my displayName attribute at prefix in the OU as CN so that the output shud be CN=(DISPLAYNAME),ou=employees,DC=xyz,DC=com" CAN WE ACHIVE THIS IN SAME LOGIC ?