Skip to Content.
Sympa Menu

grouper-users - [grouper-users] RE: IncludeExclude and requiredGroups

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] RE: IncludeExclude and requiredGroups


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: "Black, Carey M." <>, "Farmer, Jacob" <>, "Bickel, David" <>, "" <>
  • Subject: [grouper-users] RE: IncludeExclude and requiredGroups
  • Date: Mon, 12 Jun 2017 02:58:39 +0000
  • Accept-language: en-US
  • Authentication-results: osu.edu; dkim=none (message not signed) header.d=none;osu.edu; dmarc=none action=none header.from=isc.upenn.edu;
  • Ironport-phdr: 9a23:zS90/xOtSGAhG2Edy4cl6mtUPXoX/o7sNwtQ0KIMzox0K/zzrsbcNUDSrc9gkEXOFd2CrakV1KyJ6+u+BSQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9GiTe5Y75+Nhe7oRneusQXjoZpN7o8xAbOrnZUYepd2HlmJUiUnxby58ew+IBs/iFNsP8/9MBOTLv3cb0gQbNXEDopPWY15Nb2tRbYVguA+mEcUmQNnRVWBQXO8Qz3UY3wsiv+sep9xTWaMMjrRr06RTiu86FmQwLzhSwZKzA27n3Yis1ojKJavh2hoQB/w5XJa42RLfZyY7/Rcc8fSWdHQ81fVTFOApmkYoUPEeQPIPpYoYf+qVsArxS+BBWjC+z0xzBSmnP6wbc33/g9HQ3Y2gErAtIAsG7TrNXwLKoeX+K7zanJzDrddfNawSr25ZbIchA7oPGMRrx8etfWxEkqCwzFjlWRqI37MDOPzekNsnOb4PZ6WeKyk24otQdxoj61ysgyl4bJm5sYx1bZ/it3x4Y1IMe3SE99YdO8EZtQsT2aOJVsQsMkXW5opDg2xqcYtpGmYSgHzoksyR3Ha/GfbYSH+A7vWPuULDtlmX5pZbeyhxi9/ES81uHxU8u530hFoydBl9TBs24B2wDO5sSfV/dw8Fut1SyL2gzO8O1IP104mK7BJ5I8wLM9l5weulnZECDsgkX5lqqWe10k+ue27+TnZa3rqIeAOoFzlg3zPL0ilMK4D+k2KwQOWHOU9vqm2L3k4E35XK5FjvorkqnfrZ/WP9wbprS+Aw9JzIks9wq/Dzah0NQeh3UHK09FeA6Dj4juPFHOI+r0Auu4g1SpiDtrxvbGMaP9ApjVMHTMiqvtcat45kJB1QY/0NVS55xbB70dPP7+X038u8LXAxI9NgG5xvjrBMlg2o8GXGKAGK6ZMKfcsV+S4eIvJvGBZIoJtzb9K/kk5uDhjWUilF8cZqmmwYEbaG2gHvt4JUWZZ2DgjckcHmcXpgY+VvDliEWeUT5PYHa/R6085is8CIK7FYfMWJqtjKWc3CegAJJWfHtGB0uIEXfpbIWER+wMZDyILs9glDwESaauS5Un1R6wqA/21aBrIfTJ9S0F5trf040/zenanhJ2vRd9FcmMm0TLBSkglGcBTDxwhfokiUtm1xGO3bUux7QSO9VJ4v5TFk8YPJXbxaYyX9LqVAvbe9qTYFe7BNiqHGd1BpgbwtQNbkI5U/mrkBHPlWL+AbMflreICZgc87+a0nTscYI1gXnc07Q5gkNjX9BCL3aOh6hj+hLVCpKT1UiViuziIasG2zPV+X3G0HGDplpwUQhsXL/DUGxFIEbasIKqyFnFSurkKaU1PxEFgeWCMKpRIJW9iF5GVeXuIvzfeGn3hn+9AxDOy7+ROtm5M14B1TnQXRBX2zsY+myLYE1nXn+s
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Regarding #3, that is fixed in Grouper 2.3.0 API patch #69

 

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

 

Thanks

Chris

 

From: Black, Carey M. [mailto:]
Sent: Friday, June 09, 2017 3:41 PM
To: Farmer, Jacob <>; Bickel, David <>;
Cc: Hyzer, Chris <>
Subject: RE: IncludeExclude and requiredGroups

 

Jacob,

 

I could be wrong about some of these details, but my impressions of these features are as follows:

NOTE: I am poking at this with a stick and not yet tried to read the code. ( YMMV, you may find other features, my install is still a “work in progress” so something could still be “broken here”, etc.., etc…)

 

 

1)      Composite groups “do group math” on every search/fetch of the group/user involved in the search.

a.       However, it is only a pair of groups to do math on, but you can nest groups as needed.

TopGroup = GroupA intersection of (GroupB)  , 

                AND  GroupB = GroupC minus GroupD,

                                   AND GroupC = GroupE intersected with GroupZ,

                                etc…

 

2)      “IncludeExclude” is an example of “automating the conversion of an existing group into a composite group”, and the creation of the “include” and “exclude” groups/design too.

                This is done vai a hook at the time when the “addIncludeExclude” type is added to the group.

                In this case:

 

                                Create a group “groupName”

                                Navigate to the Admin UI.

                                Edit group

                                Check the “addIncludeExclude” group type

                                Save        (NOTE: If there is an easier way to do this from the “New UI” I would love to know. )

 

                                A new group named “groupName_system of record” is created

                                                Any existing members of “groupName” are moved to this group.

                                A new group named “groupName_includes” is created

                                A new group named “groupName_excludes” is created

                                A new group named “groupName_system of record and includes “ is created.

                                                Two members are added to this group:

                                                                “groupName_system of record”

                                                                “groupName_includes”

                                The original group (groupName) is converted to a composite of “groupName_system of record and includes”  MINUS  “groupName_excludes”

 

3)      “requireInGroup” appears to only work when the “addIncludeExclude: is set on a group AND it already has one or more groups in the “requireAlsoInGroups” attribute

 

                This is done vai a hook at the time when the “addIncludeExclude”( ß ) type is added to a group.

                NOTE: This is an example with only one group in the “requireAlsoInGroups” attribute , you can have more than one. (comma separated list)

                In this case:

                                Create a group “groupName”

                                Navigate to the Admin UI.

                                Edit group

                                Check the “requireInGroup” group type

                                Save

 

                                Click “edit attributes”

                                                Fill in the value for the “requireAlsoInGroups” attribute  ( Let’s call this “etc:requiredMemberships”)

                                Click “Save attributes and finish”. ( BTW: “Save attributes and add members” appears to have no additional functionality to me.)

 

                                Now “Edit group” (again)

                                  Check the “addIncludeExclude” group type

 

                                This time you get a slightly different structure:

 

                                A new group named “groupName_system of record” is created

                                                Any existing members of “groupName” are moved to this group.

                                A new group named “groupName_includes” is created

                                A new group named “groupName_excludes” is created

                                A new group named “groupName_system of record and includes “ is created.

                                                Two members are added to this group:

                                                                “groupName_system of record”

                                                                “groupName_includes”

                                A new group named “groupName includes minus excludes” is created.   ß *new part*

                                                A composite of “groupName_system of record and includes “ MINUS “groupName_excludes”

                                The original group (groupName) is converted to “groupName includes minus excludes” INTERSECTION  “etc:requiredMemberships” ß *changed part*

 

 

NOTE: It appears that further manipulation of the “requireAlsoInGroups” attribute, or the groupType values do not “redefine”/”alter” the groupName after these processes have happened the first time. ( and there is no “warning”/”message”/”explanation” either.)

                I am not sure how I feel about that…. Seems like a “one time tool” that might be helpful if you can know all that you need to know “up front”. But then it leaves you in a state that you don’t “undo”, rather you need to “get our your surgical knife and know where to cut”. :^/

 

NOTE: Now I want to go write a hook for a design pattern that I want to implement. J

 

--

Carey Matthew

 

From: [] On Behalf Of Hyzer, Chris
Sent: Thursday, June 8, 2017 10:54 AM
To: Farmer, Jacob <>; Bickel, David <>;
Subject: [grouper-users] RE: IncludeExclude and requiredGroups

 

The “type” requireInGroup was meant to be lightweight, but you can make more composites to do this I think.  We have had discussions to make the “composite”  concept in Grouper to be more powerful, and we have a long term plan for this.

 

I made this wiki:

 

https://spaces.internet2.edu/display/Grouper/Grouper+UI+composites

 

Does that address the issue?

 

Thanks

Chris

 

From: [] On Behalf Of Farmer, Jacob
Sent: Thursday, June 08, 2017 9:51 AM
To: Bickel, David <>;
Subject: [grouper-users] RE: IncludeExclude and requiredGroups

 

Colleagues,

 

Anyone have an insight on how we might troubleshoot this?

 

Thanks!

Jacob

 

From: [] On Behalf Of Bickel, David
Sent: Wednesday, May 31, 2017 12:11 PM
To:
Subject: [grouper-users] IncludeExclude and requiredGroups

 

Hello fellow grouper users,

 

I have been tasked with figuring out the functionality of how to have grouper build groups that are a composite of more than 2 groups.  I am able to use the basic composite group logic to perform intersect operations.   However, when I attempt to use groups set as grouperIncludeExclude requireGroup types I seem to not be able to achieve similar behavior.

 

From the documentation,  I have created a group called “GroupA”.  If that group is then flagged with attribute to requireEmployee and requireHasEmail, the group should be populated from the intersect of those groups.

 

Does anyone see any glaring oversight here?  I appreciate any guidance from those more experienced in the ways of Grouper.

 

Thanks,

--David

 

J. David Bickel

Identity Management Systems

Indiana University

812-855-6346

 




Archive powered by MHonArc 2.6.19.

Top of Page