RT::Groups - a collection of RT::Group objects
use RT::Groups;
my $groups = RT::Groups->new($CurrentUser);
$groups->UnLimit();
while (my $group = $groups->Next()) {
print $group->Id ." is a group id\n";
}
Returns the string that represents this Users object's primary "Principals" alias.
Return only SystemInternal Groups, such as "privileged" "unprivileged" and "everyone"
Return only UserDefined Groups
Limits the set of groups to role groups specifically for the object in question based on the object's class and ID. If the object has no ID, the roles are not limited by group Instance
. That is, calling this method on an unloaded object will find all role groups for that class of object.
Replaces "LimitToRolesForQueue", "LimitToRolesForTicket", and "LimitToRolesForSystem".
DEPRECATED. Use "LimitToRolesForObject" instead.
Limits the set of groups found to role groups for queue QUEUE_ID
DEPRECATED. Use "LimitToRolesForObject" instead.
Limits the set of groups found to role groups for Ticket Ticket_ID
DEPRECATED. Use "LimitToRolesForObject" instead.
Limits the set of groups found to role groups for System System_ID
Limits the set of groups returned to groups which have Principal PRINCIPAL_ID as a member. Returns the alias used for the join.
Find all groups which have RIGHTNAME for RT::Record. Optionally include global rights and superusers. By default, include the global rights, but not the superusers.
Only find items that haven't been disabled
Only find items that have been deleted.
← Back to index