Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] Searching groups by createTime or modifyTime

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] Searching groups by createTime or modifyTime

Chronological Thread 
  • From: "Redman, Chad Eric" <>
  • To: "Hyzer, Chris" <>, Julio Polo <>, "" <>
  • Subject: RE: [grouper-users] Searching groups by createTime or modifyTime
  • Date: Thu, 3 Mar 2016 17:20:45 +0000
  • Accept-language: en-US

Wouldn't a GroupModifiedAfterFilter.getResults() call work?




#Not imported by default?

import edu.internet2.middleware.grouper.filter.GroupModifiedAfterFilter

import edu.internet2.middleware.grouper.filter.GroupMembershipModifiedAfterFilter


session = GrouperSession.startRootSession(true)


rootStem = StemFinder.findRootStem( session )


#Changes for the past 1 hour

changeTime = new Date(System.currentTimeMillis() - 1000L*60*60)


modifiedGroupFilter = new GroupModifiedAfterFilter(changeTime, rootStem)

modSet = modifiedGroupFilter.getResults(session)

System.out.println("Groups modified since " + changeTime.toString() + ": " + modSet.size())

for (Group g : modSet) { System.out.println(g.getName()); }


#Note: Membership updates depend on setting property: groups.updateLastMembershipTime = true

modifiedGroupMembershipFilter = new GroupMembershipModifiedAfterFilter(changeTime, rootStem)

modMemberSet = modifiedGroupMembershipFilter.getResults(session)

System.out.println("Group membership modified since " + changeTime.toString() + ": " + modMemberSet.size())

for (Group g : modMemberSet) { System.out.println(g.getName()); }







From: [mailto:] On Behalf Of Hyzer, Chris
Sent: Thursday, March 03, 2016 1:33 AM
To: Julio Polo <>;
Subject: RE: [grouper-users] Searching groups by createTime or modifyTime


I don’t think so.   Open a jira if you want this added





From: [] On Behalf Of Julio Polo
Sent: Wednesday, March 02, 2016 10:47 PM
Subject: [grouper-users] Searching groups by createTime or modifyTime


Is it possible to search groups by their creation or modification time falling within a particular window?   For example, I'd like to get back a list of all groups created within the past N minutes.  Is this possible via a web service?  Is this optimized such that I can poll Grouper every N minutes for this info?


Julio Polo
Enterprise Middleware, Identity and Access Management
Information Technology Services
University of Hawaii

Archive powered by MHonArc 2.6.16.

Top of Page