Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Grouper Loader - Create reference groups from SQL rows?

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Grouper Loader - Create reference groups from SQL rows?


Chronological Thread 
  • From: "Gettes, Michael" <>
  • To: Carl Waldbieser <>
  • Cc: grouper-users <>
  • Subject: Re: [grouper-users] Grouper Loader - Create reference groups from SQL rows?
  • Date: Fri, 13 Jul 2018 20:00:17 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:19bVTRGQH63pDgGKRRF9+p1GYnF86YWxBRYc798ds5kLTJ7zpMywAkXT6L1XgUPTWs2DsrQY07SQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDuwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95RWSJfH428c4UBAekPPelaqIf9pkcBohSlCAa2GO/vzyVFhn/q0aA41ekqDAHI3BYnH9ILqHnYotT7O7kOUeCp0qbI1i3PZO5R1zf89IfIcgouru+IXb5+bMHczkYvGB3ZjlWMt4PlJCiY1vkDs2if9eZvS/+gi3M+pgx3vzOhxd8sh5HUio4LyV3I7zt1zJg3KNGiSkN2bsSoHIZOuyyaL4d6X98uT3tmtSs70LEKpJq2cSsQxJg6yBPTc/KHfJaL7x7/UeucJDR1iXZ5dL2jghu97VOvxff8W8SxzlpHrDFKnsfJu38QzBPf9MqKR/1g9Um7wzmPzRrc6uRcLEA0i6XbL5khz6YrlpoWrUTDBjX6mFj4jK+SbEkr5PWn6/n/brXnoJ+TKZN0hxnjPqgwmcGzG/o0PhYMUmSB++mx26fv8VDnTLhKlvE2l7PWsJHeJcQVvK65BApV354s6xmhEzemzMoXnWIcIVJYdhKHi5LlNE/TL/DlFfu/mUijkC93x/DaOb3sGprNLmLEkLf8ZbZy9VRcxBMuzdBE+Z1UEKoBLen3Wk/wr9zYEgQ5PxKuz+bmDtV9yp0RWXiJAqCHLKPer0WE6fwyLOmRN8cpv2PWIuIhr8HniXMzmFIGcLPhiYQebHyyH/ltC0GQb3P9j8sdHCEHshdoH8Lwj1jXGxFee2q/ROZ0wzAwCIurCc2LEo+gnKCMxw+mEJkQa2xbXAPfWUz0fpmJDq9fIBmZJdVsx3ldDeCs

New UI - create a group.  Under the More tab next to Privileges you will see “Loader”.  Then you will see a “Loader actions” button appear - and I think you should be able to figure it out from there.  I put my loader job groups in LoaderJobs at the Root.  I am sure others do it differently.

/mrg

On Jul 13, 2018, at 3:50 PM, Carl Waldbieser <> wrote:

Michael,

Thanks-- I think I get it, except-- what do you assign the LoaderType properties on?  The stem?  Some random group?

Thanks,
Carl Waldbieser
ITS Identity Management
Lafayette College

----- Original Message -----
From: "Michael Gettes" <>
To: "waldbiec" <>
Cc: "grouper-users" <>
Sent: Friday, 13 July, 2018 15:36:34
Subject: Re: [grouper-users] Grouper Loader - Create reference groups from SQL rows?

Change your SQL to do the following:

SELECT SUBJECT_ID, ‘Stem1:Stem2:’||grpname as GROUP_NAME
From tables
Where conditions;

And configure this as Loadertype SQL_GROUP_LIST and you’re done.

Later you can do things like SELECT SUBJECT_ID, ‘basis:byDept:’||DeptID||’:Staff:’StaffLevel as GROUP_NAME and now you are creating multi-level groups.  Be sure to set things such as 'Groups like sql part’  and 'Group query (metadata on groups)’ as needed.

A single SQL query with a loader job can generate 10s of thousands of groups.  Did this at PSU and managed 90,000 course groups in 1 hour daily run.

Happy to discuss by phone if you wish.

/mrg

On Jul 13, 2018, at 3:08 PM, Carl Waldbieser <<>> wrote:


I have rows coming from a SQL connection like this:

 SUBJECT_ID  GROUP_NAME
 ==========  ==========
 subject-A   group-1
 subject-B   group-1
 subject-C   group-2
 subject-D   group-1
 ...

I'd like the loader to create "group-1" and "group-2" and "group-N" in a particular stem and populate the memberships, but I'm unsure if (1) the loader can do that, and (2) how to configure the loader to do that if it is possible.

Any pointers would be great!

Thanks,
Carl Waldbieser
ITS Identity Management
Lafayette College




Archive powered by MHonArc 2.6.19.

Top of Page