grouper-users - RE: [grouper-users] automagically creating group from stem node
Subject: Grouper Users - Open Discussion List
List archive
- From: Chris Hyzer <>
- To: Jon Gorrono <>
- Cc: Nathan Weyenberg <>, "" <>
- Subject: RE: [grouper-users] automagically creating group from stem node
- Date: Wed, 31 Oct 2012 15:40:41 +0000
- Accept-language: en-US
The subject_source_id for a group is not gadget_ss_cms, it is g:gsa Im pretty sure that a group as a member in the loader needs to exist when adding as a member, though Im not sure, and I don’t know why it would need to be that
way… J Let me know if it works.
Thanks, Chris From: Jon Gorrono [mailto:]
Thanks for this suggestion and the parent/child query :) I have been trying to distill your answer and tooling around, and it must be one of my many learning disabilities, but things are definitely not going quite like Gangnam Style :) The grouperLoaderQuery returns stuff like this: GROUP_NAME SUBJECT_IDENTIFIER SUBJECT_SOURCE_ID cms:course:section:AAS:010:A01:201210 gnxxxx gadget_ss_cms cms:course:section:AAS:010:A01:201210 inxxxx gadget_ss_cms and in that order (since I customized the GroupLoaderType to remove the order-by clause so I could control it) The first three rows above create a group with direct members gnxxxx,inxxxx,and ajxxxx
and I expected the next one to add group cms:course:section:AAS:010:A01:201210
as a member of cms:course:section:AAS:010:A01...
but even thought the former (group) is created, the latter is still just a folder with no direct/indirect memberships So, does this ordering seem correct in principle?
Regardless, could it be that the subjobs could be running 'in parallel' and cms:course:section:AAS:010:A01:201210 (for example) may not exist for the subjob to add it as a
member to cms:course:section:AAS:010:A01 ? Regards, Jp On Mon, Oct 22, 2012 at 10:29 AM, Chris Hyzer <> wrote: 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.