Hope this is something like what you're after.

<cfscript>
                oAuthentication = request.dmsec.oAuthentication;

                newstObj=structnew();
                newstObj.label="#firstname# #lastname#";
                newstObj.firstname="#firstname#";
                newstObj.lastname="#lastname#";
                newstObj.bactive=1;
                newstObj.username=xeuserid;
                newstObj.userdirectory="CLIENTUD";
                newstObj.bReceiveEmail="0";

                //Create the new user

oAuthentication.createUser(userlogin="#xeuserid#",userpassword="
",userdirectory="HYBRID",usernotes=" ",userstatus=4);

                //Now create a structure to hold new profile properties
                stProps = structNew();
                stProps.userLogin = "#xeuserid#";
                stProps.userDirectory = "HYBRID";

                //Create new profile. This used to be done as part of the
login
                o_profile = createObject("component",
application.types.dmProfile.typePath);
                stNewProfile =
o_profile.createProfile(stProperties=stProps);

                //Now update the profile with the users home node in the
Overview tree
                newstObj.objectId = stNewProfile.objectId;
                o_profile.setData(stProperties=newstObj);

                for (i=1;i lte listlen(form.groups); i=i+1)
                {
                    oAuthentication.addUserTogroup
(userLogin="#xeuserid#",userdirectory="HYBRID",groupname=listgetat(
form.groups,i));
                }
            </cfscript>

Blair

On 5/6/07, Jake Churchill <[EMAIL PROTECTED]> wrote:
>
>
> Can you point me in the right direction so I can find and evaluate the
> API?
>
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of Duncan
> Sent: Saturday, May 05, 2007 5:25 AM
> To: farcry-dev
> Subject: [farcry-dev] Re: mass user import
>
>
> Hi Jake,
>
> I would be inclined to write your script to add them using the API
> rather than importing the data directly to the tables.
>
> Cheers,
> Duncan
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to