[jboss-user] [JBoss Portal] - Creating portal users programmatically

psevestre do-not-reply at jboss.com
Thu Aug 28 08:56:13 EDT 2008


Hi, 

I'd like to create a set of portal users based on information that I'll receive in a simple CSV-format file, containing some data.

I've read the docs and source-code and, in a first incarnation of this batch import, I'm using the IdentityUserManagementService (which in not documented, btw) together with User an Profile modules. 

This will probably do for now but, from what I could see in code, by using the exposed APIs, the configured registration mode seems to be bypassed. In my case, this would mean that I'll have to mimic the registration process, ie, send an email and handling the validation url.

Is there a way to programmatically create users in a way that the configured registration mode is honored, whichever it is ? Also, I think that it would be nice if the API could expose this in a way that allows the programmer to bypass or not the default registration flow.

Regards,


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4173042#4173042

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4173042



More information about the jboss-user mailing list