Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] finding subjects with privileges via WS

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] finding subjects with privileges via WS


Chronological Thread 
  • From: Scott Koranda <>
  • To: Chris Hyzer <>
  • Cc: Grouper Users Mailing List <>
  • Subject: Re: [grouper-users] finding subjects with privileges via WS
  • Date: Thu, 12 Feb 2009 16:24:13 -0600

> For get members with privileges in a group, you should be
> able to use getMembers web service, and specify a group and
> a field of "admin", or "read", or whatever.

It does not seem to work.

Here is the SOAP I am sending in:

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="http://soap.ws.grouper.middleware.internet2.edu/xsd";>
<SOAP-ENV:Body>
<ns1:getMembers><ns1:clientVersion>v1_4_000</ns1:clientVersion><ns1:wsGroupLookups><ns1:groupName>Communites:LVC:LSC:MOU:UWM:UWMCouncilMembers</ns1:groupName><ns1:uuid></ns1:uuid></ns1:wsGroupLookups><ns1:memberFilter>Effective</ns1:memberFilter><ns1:actAsSubjectLookup><ns1:subjectId></ns1:subjectId><ns1:subjectIdentifier></ns1:subjectIdentifier><ns1:subjectSourceId></ns1:subjectSourceId></ns1:actAsSubjectLookup><ns1:fieldName>update</ns1:fieldName><ns1:includeGroupDetail>F</ns1:includeGroupDetail><ns1:includeSubjectDetail>F</ns1:includeSubjectDetail><ns1:subjectAttributeNames></ns1:subjectAttributeNames></ns1:getMembers></SOAP-ENV:Body></SOAP-ENV:Envelope>

I am seeing this error:

<ns:resultMessage>Problem with fieldName: update.
edu.internet2.middleware.grouper.exception.SchemaException:
field not found: update

I also tried 'UPDATE' for the field but I received the same
error.

>
> For stems... I don't think that is implemented yet. I added
> it as a todo here:
>
> https://wiki.internet2.edu/confluence/display/GrouperWG/Grouper+Web+Services
>
> When do you need the stem privilege lookups,

I don't have an immediate need right now. Thanks.

Scott

> and does the
> getMembers work for you for groups (you cant get multiple
> fields at once, need to request each)?
>
> Btw, you can use hasMember to see if a user has a group
> privilege by specifying field name (stem you cant, but I
> added a todo for that too :) ).
>
> Thanks, Chris
>
> > -----Original Message----- From: Scott Koranda
> > [mailto:]
> > Sent: Thursday,
> > February 12, 2009 4:15 PM To: Grouper Users Mailing List
> > Subject: [grouper-users] finding subjects with privileges
> > via WS
> >
> > Hi,
> >
> > The UI allows me to "Show entities with
> > ADMIN/UPDATE/READ/..." for a group and similar for a stem.
> >
> > I would like to use the web services interface (SOAP) to
> > exercise the same functionality, but I do not see an
> > operation that supports that functionality.
> >
> > The getGrouperPrivilegesLite() operation allows me to
> > query for the privileges that one subject has on a group
> > or a stem, but I want to be able to get all subject that
> > have a particular privilege on a group or stem.
> >
> > Am I missing something or not understanding the
> > capabilities of getGrouperPrivilegesLite()?
> >
> > Thanks,
> >
> > Scott



Archive powered by MHonArc 2.6.16.

Top of Page