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 19:36:34 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:V9vu6R/66R5fxP9uRHKM819IXTAuvvDOBiVQ1KB30OocTK2v8tzYMVDF4r011RmVBduds6oMotGVmpioYXYH75eFvSJKW713fDhBt/8rmRc9CtWOE0zxIa2iRSU7GMNfSA0tpCnjYgBaF8nkelLdvGC54yIMFRXjLwp1Ifn+FpLPg8it2O2+55zebx9UiDahfLh/MAi4oQLNu8cMnIBsMLwxyhzHontJf+RZ22ZlLk+Nkhj/+8m94odt/zxftPw9+cFAV776f7kjQrxDEDsmKWE169b1uhTFUACC+2ETUmQSkhpPHgjF8BT3VYr/vyfmquZw3jSRMNboRr4oRzut86ZrSAfpiCgZMT457HrXgdF0gK5CvR6tuwBzz4vSbYqINvRxY7ndcMsaS2RfQ8hRSyJPDICyb4QNCOQBPPpXoIbmqlQUsRe+ABOhBOPzxjJKgHL9wK000/4mEQHDxAEsEdMAv2rIrNXpKqgSSvi5x7TPwzXCc/xW2S3y55bMchwvvPqBWr1wftTNyUkzCQzFlU6dqZHrPzORzOgCrXWU7/d5WO+plmUpqBlxryCyyssyiYTFnJwZxk7G+Cljwos4Kse0RFBmbdOgCJdcqj2WO5F4T84jWW1kpSg3x7IctZKmYSQG0JonyADcZvCbdoWF5xHuWeKNLThkgX9qZKmwiAyy/EWl1OHxVNK73EhPoyVYidbAqHIA2hrO4cadUPR95F2u2TOX2gDT9O5EJUc0mLLAK54k3r4wjoAfsVnNHi/ygkn5krKZdlg89uip7eTofKnmq4eBO4NqiQzyKLoiltK9DOgiMAUDUHKX9fqh2LDn5UH5Ra9FjvwykqnXqpDaIsEbq7a2AwBLzoYj9wiwDyy93dQFk3kHKEhJdwyagIj0I13OOuz3De+jg1Swlzdm3//GPqfmApXQNnjMjq3hca9g605H1gUz18tf6olQCrEAO/LzRlTxuMLCAh84NQy03/joCM971owARWKDHLWVP73Pvl+VtaoTJLynbZUR8An0L/Qv5vP1gGVxzUAUeaWj3JYcQHSxEP13LlmFbDzhjspXQkkQuQ9rBsPnlEGPSnobQne5X6sx4ntzXI2rEZvOXaiwjrjH0SumSM4FLltaA0yBRC+7P76PXO0BPWfLepds

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