Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Auto removal on groupA or groupB when "added" to groupC

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Auto removal on groupA or groupB when "added" to groupC


Chronological Thread 
  • From: Jeffrey Crawford <>
  • To: Chris Hyzer <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Auto removal on groupA or groupB when "added" to groupC
  • Date: Mon, 7 Dec 2015 16:52:25 -0800

looking good so far, thanks for the feature!

Jeffrey

Both pilots and IT professionals require training and currency before charging into clouds!
---------------------------------------

On Mon, Dec 7, 2015 at 8:28 AM, Chris Hyzer <> wrote:

This is done

 

https://spaces.internet2.edu/display/Grouper/Built+in+Grouper+hook+for+one+membership+in+folder

 

https://bugs.internet2.edu/jira/browse/GRP-1231

 

If a folder is configured for this via attribute, and the hook is enabled, it will make sure that as members are added to groups, if they are members of other groups in the immediate folder, they will be removed from the other groups.

JIRA GRP-1231

Note, this is enabled on the demo server, for the groups (ask Chris for access if you want to try it out, you need to be in the test:oneMembershipAdmin group): 

·         test:oneMembership:test1

·         test:oneMembership:test2

·         test:oneMembership:test3

 

Grouper version

This is available in 2.2.2+ (and 2.2.2 has to be fully patched, since this is in API patch #3)

Configure

to use this, first enabled the hook in grouper.properties, then restart the JVM

hooks.membership.class = edu.internet2.middleware.grouper.hooks.examples.MembershipOneInFolderMaxHook

if you are installing the 2.2.2 patch for this (API#3), then if the ehcache.example.xml doesnt match up, you might need to copy it from the "old" dir (adjust your dirs appropriately):

[appadmin@i2midev1 patches]$ cp /opt/grouper/2.2/patches/grouper_v2_2_2_api_patch_3/old/classes/ehcache.example.xml /opt/tomcats/tomcat_d/webapps/grouper_v2_2/WEB-INF/classes

you will see this in the logs on startup (or wherever attribute built ins live in your grouper):

Grouper note: auto-created attributeDefName: etc:attribute:hooks:hookMembershipOneInFolder

assign that attribute to a folder with GSH or the UI

gsh 0% grouperSession = GrouperSession.startRootSession();

gsh 1% stem = StemFinder.findByName(grouperSession, "test:oneMembership");

gsh 2% hookAttribute = AttributeDefNameFinder.findByName("etc:attribute:hooks:hookMembershipOneInFolder", true);

gsh 3% stem.getAttributeDelegate().assignAttribute(hookAttribute);

 

 

From: Jeffrey Crawford [mailto:]
Sent: Friday, December 04, 2015 1:22 PM
To: Chris Hyzer
Cc:
Subject: Re: [grouper-users] Auto removal on groupA or groupB when "added" to groupC

 

Thanks you guys are awesome!


Jeffrey

 

Both pilots and IT professionals require training and currency before charging into clouds!

---------------------------------------

 

On Fri, Dec 4, 2015 at 10:15 AM, Chris Hyzer <> wrote:

Got the reminder, implemented it, testing it now… J

 

Thanks,

Chris

 

From: Jeffrey Crawford [mailto:]
Sent: Friday, December 04, 2015 12:20 PM
To: Chris Hyzer
Cc:
Subject: Re: [grouper-users] Auto removal on groupA or groupB when "added" to groupC

 

Hey Chris,

Just checking in, I'm sure you're busy but just wanted to make sure you got the reminder.


Jeffrey

 

Both pilots and IT professionals require training and currency before charging into clouds!

---------------------------------------

 

 





Archive powered by MHonArc 2.6.16.

Top of Page