How to create organization in IDM dynamically

Hi.. 1 and all

am trying to create organizations in IDM as well as AD

am able to do manually but i want to create dynamically

when the new Organizations enter in flat file ....

any body know about this Please give the information

thank you in advance...........

[303 byte] By [Sun_Java_Identuty_Manager@Suna] at [2007-11-27 3:48:01]
# 1

Hi,

maybe this gets you a good point to start:

<TaskDefinition name='TestWF20' taskType='Workflow' executor='com.waveset.workflow.WorkflowExecutor' suspendable='true' syncControlAllowed='true' execMode='sync' execLimit='0' resultLimit='0' resultOption='delete' visibility='runschedule' progressInterval='0'>

<Extension>

<WFProcess name='TestWF20' maxSteps='0'>

<Activity id='0' name='start'>

<Transition to='do it'/>

</Activity>

<Activity id='1' name='do it'>

<Variable name='og'/>

<Action id='0'>

<expression>

<block trace='true'>

<set name='og'>

<new class='com.waveset.object.GenericObject'>

<map>

<s>orgDisplayName</s>

<s>ACME</s>

<s>orgParentName</s>

<s>Top</s>

</map>

</new>

</set>

<invoke name='setId'>

<ref>og</ref>

<concat>

<s>Org:org</s>

<invoke name='currentTimeMillis' class='java.lang.System'/>

</concat>

</invoke>

</block>

</expression>

</Action>

<Action id='1' application='com.waveset.session.WorkflowServices'>

<Argument name='op' value='checkinView'/>

<Argument name='view'>

<ref>og</ref>

</Argument>

</Action>

<Transition to='end'/>

</Activity>

<Activity id='2' name='end'>

</Activity>

</WFProcess>

</Extension>

<MemberObjectGroups>

<ObjectRef type='ObjectGroup' id='#ID#Top' name='Top'/>

</MemberObjectGroups>

</TaskDefinition>

Of course using createView would have been nicer as then we would not have to create the id. But that didn't work for me right away so i did it like this.

Regards,

Patrick

Patrick.Wehingera at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2
I am guessing if ActiveSync functionality could be used to pull Organizations from a flat file or from a dbtable into IdM...
rm102772a at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 3

hi Patrick ...

first of all thanks a lot for responding...

ya, i tried this code and working fine .....

but am unable to take the value from flat file where orgDiplayName

that is i want to get the organization name should bd come from

flat file can u suggest anything

thank u again ....

Sun_Java_Identuty_Manager@Su at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 4
hi thank you for responding ...ya... ur correct but problem is how to sync flat file to idm can u give any code so that i can understand .........thank u.....
Sun_Java_Identuty_Manager@Su at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 5

Hi,

can you describe what the data structure of your flatfile is? Is it a pure org flat file or is it a user flatfile where a users attribute contains org information and you want to dynamically create orgs not yet existing to put the user in? How do you know about a new orgs position within the hierarchy?

Regards,

Patrick

Patrick.Wehingera at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 6

hi .....

my flatfile is containing user id ,fname.lname, dept,location,desig,......... i want to dynamically create orgs by using dept,location fields

i.e when i enter new record of user (new dept,new location) then it should create in idm and user should be appropriate OU

i tried like this...

<map>

<s>orgDisplayName</s>

<ref>activeSync.department</ref>

<s>orgParentName</s>

<concat>

<s>Top:myCompany:</s>

<ref>activeSync.location</ref>

but its not working

Please give a suggetion.....

thank you........

</concat

></map>

Sun_Java_Identuty_Manager@Su at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 7

Hi,

in your active sync form set the waveset.organization to

<concat>

<s>Top:myCompany:</s>

<ref>activeSync.location</ref>

<s>:</s>

<ref>activeSync.department</ref>

</concat>

then change your Create User and your Update User workflow to before the provisionig/reprovisioning happens to check if the org

user.waveset.organization

exists. If it does fine. If not go to an activity similar to the one i posted in my previous reply and create it. After that continue with the provisioning/reprovisioning.

Regards,

Patrick

Patrick.Wehingera at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...
# 8
Hi.........first of all thank you for reply..am tried same as u said already am getting everything but when i pulling the department name (orgnization name) from the activeSync(flat file) value is not coming if i do hard code am getting
Sun_Java_Identuty_Manager@Su at 2007-7-12 8:51:53 > top of Java-index,Web & Directory Servers,Directory Servers...