Skip to Content.
Sympa Menu

grouper-users - [grouper-users] Creating composite groups with Grouper Web Services

Subject: Grouper Users - Open Discussion List

List archive

[grouper-users] Creating composite groups with Grouper Web Services


Chronological Thread 
  • From: "Edenfield, Dusty" <>
  • To: "" <>
  • Subject: [grouper-users] Creating composite groups with Grouper Web Services
  • Date: Thu, 13 Apr 2017 19:45:15 +0000
  • Accept-language: en-US
  • Authentication-results: internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=none action=none header.from=oit.gatech.edu;
  • Ironport-phdr: 9a23:WWscVx0B1fHJCwHxsmDT+DRfVm0co7zxezQtwd8ZsesWKPXxwZ3uMQTl6Ol3ixeRBMOAuqwC0rqd6vuxEUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQtFiT68bL9oMRm7rgrdutQYjIZmN6081gbHrnxUdupM2GhmP0iTnxHy5sex+J5s7SFdsO8/+sBDTKv3Yb02QaRXAzo6PW814tbrtQTYQguU+nQcSGQWnQFWDAXD8Rr3Q43+sir+tup6xSmaIcj7Rq06VDi+86tmTgLjhSEaPDA77W7XkNR9gqJFrhy8uxxxzY3aYICJO/VxZa7SZ88WSXZbU8pNSyBNHIWxZJYPAeobOuZYqpHwq1UBoxSjGwasAu3vyj5WiX/ywKI2y/kqHw/b3Aw7A9IPsHrYp8jyOagPTOC117XIzDXZY/xIxDjy9o7Ich4gof6SWbJ/bNHcyU4uFwPZlFmQppbqPy+L2esRs2iX9fRvWv+yi2M+rQx6vzahxsApiobTh4IVzEjJ9Ct3zYovIt24UkF7bcalEJtWqyGVKZF2QsU8TGF0pio20KMJtoOmfCQSx5QnxgLfa/yac4eT+B7sSOGRITJ+iXl4e7y/nw6//Va6xeHgS8W51UtGojdYntTJuHAA2ADf5tSCR/tz4Eis1jmC2gXW5+xGPEw7ibLXJp49zrIqi5YesEbOEjX4lUj2lqOaa1ko9+eu5u/6eLvpvIWcOJVxigzmMqQhhMi/AeMgPwYWQ2WV/viw2KP68UPkWLtGk+Q6kq7Cv5/EP8gbobO5AxNO3YYk9ha/CSqp3M4AnXkdK1JFZAyIgJT1O1HPJ/D4C+2zg1OxkDd3w/DGObrhApbXInffl7fheK5x609ayAUt0dBS/4xYBasdLP7uX0L9qcHUAgI8Pgy6zOvrFMlx24YQWW2RDaKUP6bfvFqK6+4yP+aAfIoVtyz8K/gh6f7ul3g5mVoFcKa0wJsXc2y4H/R8L0qHfHXjnNEBEWkLvgUgSOzllUaPUTlSZ3auRa486Ss0CJ64AojfRoChmqKO0zqmHpFOfGBJFkiMEWv0d4WDQ/oMZziSIsh8kjwcS7ehUZYt1Qy1tADk0bpnNfHZ+ikZtZL4yNh1/PPfmQsz9TxyE8SSzXuNT2dqkWMUWTM6xr5wrlFgygTL7a8tyfNCEsFL6ukMTxw3L4X0zupmBsr0Vx6bONqFVRzuFtq8BiwpQ8h03sQDeV1VGtO+gwrF0jbwRbIZiurYKoYz9/eW8nT8Ich8xnLKkOENkkI6U4EHYWG7nbJusQXfCojHkkidm46tdLha0yfR+WyDi2eCoRcLA0ZLTazZUCVHNQPtptPj6xaaQg==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

We are trying to make composite groups happen using Grouper Web Services Lite.  I’ve found the GroupSaveLiteRequest class but I’m not sure how to make this work with Rest.  We want to make a composite group (group A – group B = group C) using the API.  Has anyone done this and would be kind enough to share a sample?

 

 

This is the part of the wiki that makes me think this is possible….

How can I make a group which has a manual membership list and requires users to be faculty student or staff? 
First off, you need permission to view the facultyStudentStaff group, if it is not public. Note, the composite arguments shouldnt be necessary, but until it is fixed, use them and it will work. This makes a group, a system of record group (where the manual entries go), and the overall group is a composite intersection of the manual group and the facultyStudentStaff group.What does that look like in a soap request?  (note, fields which arent used need to be there, due to axis bug.  Note you need to enable "requireGroups" in your grouper.properties

  <?xml version='1.0' encoding='UTF-8'?>

  <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">

    <soapenv:Body>

      <ns1:groupSave xmlns:ns1="http://soap.ws.grouper.middleware.internet2.edu/xsd">

        <ns1:clientVersion>v1_4_002</ns1:clientVersion>

        <ns1:wsGroupToSaves>

          <ns1:wsGroup>

            <ns1:description>

              test group with requiring active facultyStudentStaff

            </ns1:description>

            <ns1:detail>

              <ns1:attributeNames>requireAlsoInGroups</ns1:attributeNames>

              <ns1:attributeValues>penn:community:facultyStudentStaff</ns1:attributeValues>

              <ns1:compositeType>intersection</ns1:compositeType>

              <ns1:hasComposite>T</ns1:hasComposite>

              <ns1:leftGroup>

                <ns1:description></ns1:description>

                <ns1:displayExtension></ns1:displayExtension>

                <ns1:displayName></ns1:displayName>

                <ns1:extension></ns1:extension>

                <ns1:name>penn:community:facultyStudentStaff</ns1:name>

                <ns1:uuid></ns1:uuid>

              </ns1:leftGroup>

              <ns1:rightGroup>

                <ns1:description></ns1:description>

                <ns1:displayExtension></ns1:displayExtension>

                <ns1:displayName></ns1:displayName>

                <ns1:extension></ns1:extension>

                <ns1:name>test:isc:astt:chris:myGroup_systemOfRecord</ns1:name>

                <ns1:uuid></ns1:uuid>

              </ns1:rightGroup>

              <ns1:typeNames>requireInGroups</ns1:typeNames>

            </ns1:detail>

            <ns1:displayExtension>My test group</ns1:displayExtension>

            <ns1:extension>myGroup</ns1:extension>

            <ns1:name>test:isc:astt:chris:myGroup</ns1:name>

          </ns1:wsGroup>

          <ns1:wsGroupLookup>

            <ns1:groupName>test:isc:astt:chris:myGroup</ns1:groupName>

          </ns1:wsGroupLookup>

        </ns1:wsGroupToSaves>

        <ns1:actAsSubjectLookup>

          <ns1:subjectId></ns1:subjectId>

        </ns1:actAsSubjectLookup>

        <ns1:txType></ns1:txType>

        <ns1:includeGroupDetail>T</ns1:includeGroupDetail>

      </ns1:groupSave>

    </soapenv:Body>

  </soapenv:Envelope>

 




Archive powered by MHonArc 2.6.19.

Top of Page