grouper-users - RE: [grouper-users] automagically creating group from stem node
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Nathan Weyenberg <>
- Cc: "" <>
- Subject: RE: [grouper-users] automagically creating group from stem node
- Date: Mon, 22 Oct 2012 17:29:49 +0000
- Accept-language: en-US
Ok, if you have a table or view with your orgs and group names inside: Then you can make a view which links up the relationships in a loader query: Then just select from that view for the loader query. Again, if you want to make it more efficient, join to grouper_groups if you can
J. Note, the groups must exist (e.g. from previous loader job which loads members into groups) new GroupSave(grouperSession).assignName("stem:grpA").assignCreateParentStemsIfNotExist(true).save(); new GroupSave(grouperSession).assignName("stem:sub_stem:grpA1").assignCreateParentStemsIfNotExist(true).save(); new GroupSave(grouperSession).assignName("stem:sub_stem:grpA2").assignCreateParentStemsIfNotExist(true).save(); Thanks, Chris Ps. here is the text if you need to copy/paste: CREATE TABLE `my_orgs` ( `org_extension` varchar(100) DEFAULT NULL, `org_group_name` varchar(256) DEFAULT NULL ); select my_orgs_parent.org_group_name as group_name,
my_orgs_child.org_group_name as subject_identifier,
'g:gsa' as SUBJECT_SOURCE_ID from my_orgs my_orgs_parent, my_orgs my_orgs_child where my_orgs_child.org_extension like concat(my_orgs_parent.org_extension, '%') and my_orgs_parent.org_extension <> my_orgs_child.org_extension CREATE VIEW `grouper_v2_1`.`my_orgs_v`
AS (select my_orgs_parent.org_group_name as group_name,
my_orgs_child.org_group_name as subject_identifier,
'g:gsa' as SUBJECT_SOURCE_ID from my_orgs my_orgs_parent, my_orgs my_orgs_child where my_orgs_child.org_extension like concat(my_orgs_parent.org_extension, '%') and my_orgs_parent.org_extension <> my_orgs_child.org_extension); select group_name, subject_identifier, SUBJECT_SOURCE_ID from my_orgs_v; select group_name, gg.id as subject_id, SUBJECT_SOURCE_ID from my_orgs_v mov, grouper_groups gg where mov.subject_identifier = gg.name; From: Nathan Weyenberg [mailto:]
Hi Chris, Unfortunately, we do not have an org chart with relationships at this time and it is quite large and constantly in flux. Logically speaking it would be: A contains AXXXXXXX, A01 contains A01XXXX, etc. The sticking point for us for trying to modify the test example was the sheer size and the naming conventions. If we had just a simple example 1 roll-up group, 1 sub stem containing two groups that were being rolled up with no include/exclude,
or system of record groups I think it would be helpful. We would be able to figure out how to modify the loader jobs to work for what we needed based off of a simple example like that I believe. --Nathan On Oct 22, 2012, at 10:32 AM, Chris Hyzer wrote:
Do you have a database table which has your org chart relationships in it? If so, send me the rows for the groups you want an example for, and I will send
you an example. Thanks, Chris From: Nathan
Weyenberg [] Hi Chris, Here at the University of Wisconsin we have tried to implement Organization Hierarchies using the grouper loader, using the example you linked as a model. While we have been able to implement the proof of concept using the configurable
items, we were not able to successfully modify the example to have it do what we want. Could you provide a very simple example in the documentation? What I am looking for is stem:grpA to be a group that contains stem:sub_stem:grpA1 and stem:sub_stem:grpA2 groups as members all loaded via the grouper loader. Thanks, --Nathan On Oct 21, 2012, at 7:42 PM, Chris Hyzer wrote:
Ok, got it. Penn does this for orgs. Maybe this will help you with an example: I dont know exactly what you are asking, but I think the answer is yes :)
Nathan Weyenberg UW-Madison DoIT - Middleware Nathan Weyenberg UW-Madison DoIT - Middleware |
- [grouper-users] automagically creating group from stem node, Jon Gorrono, 10/19/2012
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/20/2012
- Re: [grouper-users] automagically creating group from stem node, Jon Gorrono, 10/21/2012
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/21/2012
- Re: [grouper-users] automagically creating group from stem node, Nathan Weyenberg, 10/22/2012
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/22/2012
- Message not available
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/22/2012
- Re: [grouper-users] automagically creating group from stem node, Jon Gorrono, 10/30/2012
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/31/2012
- Re: [grouper-users] automagically creating group from stem node, Jon Gorrono, 10/31/2012
- Message not available
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/22/2012
- Re: [grouper-users] automagically creating group from stem node, Nathan Weyenberg, 10/22/2012
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/21/2012
- Re: [grouper-users] automagically creating group from stem node, Jon Gorrono, 10/21/2012
- RE: [grouper-users] automagically creating group from stem node, Chris Hyzer, 10/20/2012
Archive powered by MHonArc 2.6.16.