Name of the requestor's groups

Hi all,

I am ever-so-close to finishing a scrip, but there is one sticking
point. How can I find the NAME (not id, object, etc.) of each group
that the requestor is a member of? I cannot find an example of this.

Thanks again,
Vance

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

/Elements/ShowMembers does this. It isn’t pretty, but then you probably
only care about UserDefined Groups so that would be easier.

Joby Walker
ITI SSG, University of Washington


PGP key: https://staff.washington.edu/joby/joby-u-pub.asc

Vance Vagell wrote:

Hi all,

I am ever-so-close to finishing a scrip, but there is one sticking
point. How can I find the NAME (not id, object, etc.) of each group
that the requestor is a member of? I cannot find an example of this.

Thanks again,
Vance


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDQwlXgA0gpghkf88RAulBAKCpAFCImjbFHnDzTsQ960mnwJEIEACfe11c
b6Q7wJFhNickUwkfujg6TOs=
=l/2R
-----END PGP SIGNATURE-----

Vance,

Have a look at sample code from Groups_Overlay (perldoc
Groups_Overlay.pm):

use RT::Groups;
my $groups = $RT::Groups->new($CurrentUser);
$groups->LimitToReal();
while (my $group = $groups->Next()) {
print $group->Id ." is a group id\n";
}

Would it help you?

MichaelOn Tue, 2005-10-04 at 18:47 -0400, Vance Vagell wrote:

Hi all,

I am ever-so-close to finishing a scrip, but there is one sticking
point. How can I find the NAME (not id, object, etc.) of each group
that the requestor is a member of? I cannot find an example of this.

Thanks again,
Vance


The rt-users Archives

Be sure to check out the RT Wiki at http://wiki.bestpractical.com

Buy your copy of our new book, RT Essentials, today!

Download a free sample chapter from http://rtbook.bestpractical.com