Skip to Content.
Sympa Menu

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

Subject: Grouper Users - Open Discussion List

List archive

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


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Julio Polo <>, "Edenfield, Dusty" <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] Creating composite groups with Grouper Web Services
  • Date: Fri, 14 Apr 2017 14:08:02 +0000
  • Accept-language: en-US
  • Authentication-results: hawaii.edu; dkim=none (message not signed) header.d=none;hawaii.edu; dmarc=none action=none header.from=isc.upenn.edu;
  • Ironport-phdr: 9a23:kwDYCxAEbbOCnVOySLPMUyQJP3N1i/DPJgcQr6AfoPdwSP37p8+wAkXT6L1XgUPTWs2DsrQf2rSQ6firBjdIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSijewZbJ/IA+ooQnNucUbg4VvIbstxxXUpXdFZ/5Yzn5yK1KJmBb86Maw/Jp9/ClVpvks6c1OX7jkcqohVbBXAygoPG4z5M3wqBnMVhCP6WcGUmUXiRVHHQ7I5wznU5jrsyv6su192DSGPcDzULs5Vyiu47ttRRT1kyoMKSI3/3/LhcxxlKJboQyupxpjw47PfYqZMONycr7Bcd8GQGZMWNtaWS5cDYOmd4YBD/QPM/tEr4fzpFUOoxmxBQiwC+zg0TJHnGP60bEg3ug9DQ3L3gotFM8OvnTOq9X1Mb8fXe63wqjIzDTMcelW1S/g44XWchAhu/CMXal+fcHMzkQvEh/KjlWQqI3kITyVzP8As2mA7+V8T+6vlnYnpB93ojip3MsjlJTGhp8Mx13C6C53zoE1JdiiR056Z96pCJVRui+AO4txWMMiTHlkuCc8yr0ap5G7Zi4Kx4o7xxLBcfCIbZWH4g/7WOaeIDd4mHJleK+kiBqo7Uegzej8W8+p21hJtipIisfAum0M2hDJ5MWLVOFx8lqi1DqSzQzf9+JJLV4smabGJZMt3qQ8m54OvUjZACP6hUH7gLWLekgm++Wl7fnsbK/8qZ+GLYB0jxnzMqQwlcy7BuQ1KhAAUnSc9+igybHv5FD0T7dUgvEvlanWq47VKd4cpq6kHw9ayYEj6wu5Dzi7ytgYhWMHLFVZeB2Zk4fpJ1DOIPf+DfulhFSsjStrx/TBPr3mAZXBNGTMkLDkfbpl6k5czhQ8zcxH6p5KF70MIej/V0HvuNDCExM0MBG4z/z6BNh+yI8SQWePDbWYMKPWv1+I/OUvI+yUaY8QpDn9K/gk5v/wgn8jglIdfLKp0ocNZHClBvRpPUOZYXz2jtgfDGgKoxIyTPb2h12aTT5Te3GyUroz5jEhD4KmEJ/DSZ63gLCYwSe7BYNZZnpdCl2XFXfodp6EW+sXaC6MOMNhkzoEVaS/RI870xGhqhP6x6R9IuXK5yIYqMGr6N8gxfDXlBZ6zTtwCIzJ0XyJTmZcnmoXTj43mq1zvBo5gh2u3aV+jf1VEdAXr99USRsrf9aIw/FhF8G0Vw7MeNmIRVKqatKnHXc+R848yN9IbkpgTYaMlBfGimCKEq0YjfjDL5wu87mWlyz0LMZs2Xvc/Kg6hB87WsZJMyurirMppFubPJLAj0jMz/XiTq8bxiOYsT7blWc=
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Yes, Julio is correct.  You cant use a Lite call, you need a regular call, but can still use JSON or XML or whatever non SOAP.  Ok?

 

I changed the groupSave wiki so the links work again

 

Thanks

Chris

 

 

From: [mailto:] On Behalf Of Julio Polo
Sent: Thursday, April 13, 2017 4:12 PM
To: Edenfield, Dusty <>
Cc:
Subject: Re: [grouper-users] Creating composite groups with Grouper Web Services

 

I can't verify whether the lite API supports composites (http://anonsvn.internet2.edu not responding), but the non-lite definitely does.  Here's an example using REST/XML (change the Grouper version in the URI to match yours):

POST /grouper-ws/servicesRest/xml/v2_2_002/groups

<WsRestGroupSaveRequest>
 <wsGroupToSaves>
  <WsGroupToSave>
   <wsGroupLookup>
    <groupName>path:to:your:composite</groupName>
   </wsGroupLookup>
   <wsGroup>
    <name>path:to:your:composite</name>
    <detail>
     <hasComposite>T</hasComposite>
      <leftGroup>
            <name>path:to:your:group-A</name>
      </leftGroup>
     <compositeType>complement</compositeType>
      <rightGroup>
            <name>path:to:your:group-B</name>
      </rightGroup>
    </detail>
   </wsGroup>
  </WsGroupToSave>
 </wsGroupToSaves>
</WsRestGroupSaveRequest>

-julio

On Thu, Apr 13, 2017 at 9:45 AM, Edenfield, Dusty <> wrote:

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