[rt-users] How to go from id to User or Group?

Todd Chapman rt at chaka.net
Tue Mar 16 15:08:01 EST 2004


I'm writing a scrip that will run when an AddWatcher
transaction happens. The NewValue is the Id of the user
or group that is being added. I need to check if the
Id belongs to a user or a group and then take the
appropriate action.

I probably need to to create a Principal object and
then check the type but I can't figure out how. There
is no Load method for Principal.

Maybe I need to first build a Group?

Thanks!

-Todd



More information about the rt-users mailing list