Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] groupName equals subjectIdentifier?

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] groupName equals subjectIdentifier?


Chronological Thread 
  • From: "Hyzer, Chris" <>
  • To: Julio Polo <>, "" <>
  • Subject: RE: [grouper-users] groupName equals subjectIdentifier?
  • Date: Wed, 17 Feb 2016 22:18:35 +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;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

if you are looking up a group to use as a subject, you need to use subjectLookup J

 

in addMember the wsGroupLookup is the group to add the subjects to

 

You can yes, for subject source id you can use “g:gsa”, and for subjectId you can use the UUID or for subjectIdentifier you can use the group system name… ok? J

 

I would like the non lite one and pass in the body of the call a bunch of subject lookups…

 

Like this sample:

 

http://anonsvn.internet2.edu/viewvc/viewvc.py/i2mi/trunk/grouper-ws/grouper-ws/doc/samples/addMember/WsSampleAddMemberRest_json.txt?revision=9015&view=co

 

PUT /grouper-ws/servicesRest/v2_2_000/groups/aStem%3AaGroup/members HTTP/1.1

Connection: close

Authorization: Basic xxxxxxxxxxxxxxxxx==

User-Agent: Jakarta Commons-HttpClient/3.0

Host: localhost:8092

Content-Length: 173

Content-Type: text/x-json; charset=UTF-8

 

{

  "WsRestAddMemberRequest":{

    "replaceAllExisting":"F",

    "subjectLookups":[

      {

        "subjectIdentifier":"a:b:c:d"

      },

      {

        "subjectIdentifier":"a:b:c:e"

      }

    ]

  }

}

 

Thanks

Chris

 

From: [mailto:] On Behalf Of Julio Polo
Sent: Wednesday, February 17, 2016 4:59 PM
To:
Subject: [grouper-users] groupName equals subjectIdentifier?

 

I'm using Grouper web services to add several groups as members of another group.  I'm using addMember, but I couldn't use its wsGroupLookup because it appears to support adding only one group at a time.

I noticed that I can specify the group names (e.g. path:to:group:one, path:to:group:two, etc.) as the values for subjectLookups / subjectLookup / subjectIdentifier.  Is this a supported way of doing this?   Prior to this, I was making an extra call to fetch the UUIDs of the groups, then passing those as the values for subjectLookups / subjectLookup / subjectId when calling addMember.  I just want to make sure that I'm not using an unintended side effect.

-julio

Julio Polo
Enterprise Middleware, Identity and Access Management
Information Technology Services
University of Hawaii




Archive powered by MHonArc 2.6.16.

Top of Page