Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Using hooks for group effective membership changes

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Using hooks for group effective membership changes


Chronological Thread 
  • From: Shilen Patel <>
  • To: Peter DiCamillo <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Using hooks for group effective membership changes
  • Date: Sat, 22 Jan 2011 13:22:12 -0500

Hi Peter,

Are you using Grouper 1.6? If so, as you've noticed, hooks don't fire for effective memberships.

It sounds like you basically want to know when a flattened membership is added or deleted. Is that right? A flattened membership is added the first time a group gets a member whether it's direct or indirect. A flattened membership is removed when a group no longer has a member where the member previously could have been direct or indirect.

You can get flattened notifications using the change log by directly querying the change log table, implementing a change log consumer in Java, or using the ESB connector. The change log also includes immediate membership changes. The flattened ones have a membershipType=flattened.

Thanks!

-- Shilen


On 1/21/11 4:31 PM, Peter DiCamillo wrote:
I'd like to use the hooks mechanism in Grouper to get a notification
when the effective membership of a group changes. I've done some
experimenting with hooks, and understand how to set them up. However,
when I add or remove group members, the only notifications I've been
able to get are for the immediate group that was modified, not other
groups which include the modified group.

Is there a way to do this? If so, could you describe it at a high
level? I don't necessarily have to use hooks, if Grouper provides an
alternative mechanism. The requirement is that I can run my own code
when the effective membership of any group changes. The use case is for
real-time provisioning.

Peter




Archive powered by MHonArc 2.6.16.

Top of Page