Perfect, i now have a array of user names, you know of any existing
function that will get user info from dmProfile by name? Also the
names retrieved are without the _CLIENTUD, so i guess that needs to be
manually added like:

<cfset setusername = departmentuser & "_CLIENTUD">

to be able to get the email addresses from dmProfile where the userid
is with the addition of  _CLIENTUD

Thanks

On Dec 3, 4:47 pm, "Tomek Kott" <[EMAIL PROTECTED]> wrote:
> I don't quite get your specific situation, but I know there is a function in
> farcryud.cfc (or whatever the default farcry UD is called) that is
> essentially a 'get users who are in group X' function.
> Just checked, its farcry/core/packages/security/farcryud.cfc :
> getGroupUsers().
>
> Additionally, take a look at getProfile as a way of getting the email
> address from a username. I don't know if that function requires the
> _CLIENTUD part or not. I think it simply goes through all the UD's until it
> finds the username... but check the code out.
>
> Tomek
>
> On Wed, Dec 3, 2008 at 10:24 AM, Marco van den Oever <
>
> [EMAIL PROTECTED]> wrote:
>
> > I have a ticket type which allows users to create tickets, in there
> > they can select a department through a dropdown of the Farcry groups,
> > i did this as i want to use existing structure as much as possible.
>
> > Although these are groups used for permissions, why not use it again?
> > Is this advisable to do so?
>
> > Now, when a user creates a ticket the createdby field gets a nice (in
> > this case) "farcry". If i want to collect the email address for this
> > person i need to address the table dmprofile.
>
> > So the type createdby value: "farcry" needs to match the userName
> > field in table dmprofile: farcry_CLIENTUD
>
> > Now i match the user by using:
>
> > <cfset setusername = stTicket.createdby & "_CLIENTUD">
>
> > and selecting from table dmprofile with:
>
> > <cfset stprops.userName = setusername />
>
> > Is that the way to do so?
>
> > Then i come to the point that based on the chosen department for the
> > ticket (through the dropdown of the Farcry groups) i want to select
> > the users from dmProfile that have this department (actually Farcry
> > group) assigned.
>
> > So for that of course you can think of a construction, but my question
> > is, is this the way to do so?
>
> > Thank you
>
> > On Dec 2, 6:29 pm, Marco van den Oever <[EMAIL PROTECTED]>
> > wrote:
> > > Thanks both, that will do it :)
>
> > > On Dec 2, 3:57 am, "Blair McKenzie" <[EMAIL PROTECTED]> wrote:
>
> > > > application.security.getCurrentUserID() returns the current userid or
> > an
> > > > empty string for no logged in user.
>
> > > > application.security.isLoggedIn() returns true / false
>
> > > > Blair
>
> > > > On Tue, Dec 2, 2008 at 1:34 PM, Tomek Kott <[EMAIL PROTECTED]>
> > wrote:
> > > > > i think there is a application.security.isLogged() function (or
> > something
> > > > > similar to it, check the dmSecurity / security.cfc. I would probably
> > say to
> > > > > use that in case the session variable ever gets updated to something
> > > > > different or userid gets renamed.
> > > > > Otherwise I would say you're fine as long as you're checking that
> > after
> > > > > users have signed in.
>
> > > > > Tomek
>
> > > > > On Mon, Dec 1, 2008 at 9:13 PM, Marco van den Oever <
> > > > > [EMAIL PROTECTED]> wrote:
>
> > > > >> What is the official way to get the logged in user data?
>
> > > > >> For instance now i use session.dmsec.AUTHENTICATION.userid to get
> > the
> > > > >> logged in userid, i have chosen this because i am afraid that if the
> > > > >> profile isn't filled in, the code will not work.
>
> > > > >> How do you do it? And should you always point out to users they HAVE
> > > > >> to fill in the profile or else the plugin etc doesn't work, or is it
> > > > >> best to build in some checking that will throw a request to first
> > fill
> > > > >> in the profile.
>
> > > > >> Thank you
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to farcry-dev@googlegroups.com
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