Help/Hints needed to Dump User object to CSV file

Hellos,

A customers 3rd party system needs csv datafrom IdM. The data can be transferred via flat files - the simplest way in my opinion. This is definitely not worth writing a connector for.

I hope to add an activity to the CreateUser UpdateUser and DeleteUser workflows which appends a record to the flat file.... if no file then create it, write header and then append record...

I guess this activity has to be a bespoke java class.

I have never done this sort of thing before.

Are there any examples of this sort of thing in the documentation?

What I am looking for is big hint + example java code which unpacks the userObject (or userView ) and gets attribute values for all the attributes I care about (in a fixed sequence)

This shouldnt be too difficult. I rather not use the audit log reports csv email attachment as the audit log seems to upper case everything.

[928 byte] By [greenfan88] at [2007-11-26 10:50:53]
# 1
You could create an activity that uses the java.io to write a string to a file. Create the string by concatenating the attributes from the user object.
Dchase at 2007-7-7 3:03:33 > top of Java-index,Web & Directory Servers,Directory Servers...
# 2

Dchase, Could you expand a bit on how the activity uses the java class.

Is it sensible to do it this way:-

have an activity in the workflow (which has already the userView in variable user) which has a script action.

This script uses Xpress to build a comma delimited string "Astring" using the userView attributes in a defined sequence.

<concat>

<ref>user.accounts[LDAP].att1</ref>

<ref>user.waveset.email</ref>

<ref>user.accounts[LDAP].att2</ref>

etc..

</concat>

This script invokes my java class which appends the string "Astring" to a file.

The script action looks easiest as I can use Xpress to make a string/call my java.

I hope the invokation of my .class is doable from here,as I say I have never done this sort of thing before

greenfan88 at 2007-7-7 3:03:33 > top of Java-index,Web & Directory Servers,Directory Servers...