Jade's weblog Archive

Getting all the subsite users

set subsite_id [ad_conn subsite_id]
set user_group_id [application_group::group_id_from_package_id \
                       -package_id $subsite_id]

      select
        p.first_names || ' ' || p.last_name as who,
        p.person_id
        FROM
        persons p,
        acs_rels r,
        membership_rels mr
        WHERE
        r.object_id_one = :user_group_id and
        mr.rel_id = r.rel_id and
        p.person_id = r.object_id_two and
        member_state = 'approved'
        ORDER BY
        p.first_names, p.last_name

05:25 PM, 24 Mar 2004 by Jade Rubick Permalink | Comments (0)

XML

Notifications

You may request notification for Jade's weblog.

Syndication Feed

XML

Recent Comments

  1. Jade Rubick: And... yes and no
  2. Jade Rubick: Using hoptoad
  3. Jade Rubick: Much better
  4. Bodo Tasche: Link changed :)
  5. Bodo Tasche: Better commt emails. Now with color :)
  6. Jade Rubick: Filed a ticket
  7. Vinod Kurup: Wow
  8. Jade Rubick: Then what
  9. Paul Post: Percentages
  10. Paul Post: I might be an ENFJ?