Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] getAttributeAssignment WS and scoping

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] getAttributeAssignment WS and scoping


Chronological Thread 
  • From: Chris Hyzer <>
  • To: Scott Koranda <>
  • Cc: grouper-users <>
  • Subject: RE: [grouper-users] getAttributeAssignment WS and scoping
  • Date: Tue, 17 Apr 2012 05:19:53 +0000
  • Accept-language: en-US

Well, we dont have value queries yet, you want me to add it?

Thanks,
Chris
________________________________________
From: Scott Koranda
[]
Sent: Monday, April 16, 2012 3:25 PM
To: Chris Hyzer
Cc: grouper-users
Subject: Re: [grouper-users] getAttributeAssignment WS and scoping

Hi,

> Hmm, I don't know why you get back all results, I will check that at some
> point. I think you should get back no results. But I think if you are
> checking memberships you need to pass in either
>
> WsMembershipAnyLookup[] getWsOwnerMembershipAnyLookups()
> to query attributes in "any" memberships which are on immediate
> or effective memberships
>
> -or-
>
> WsMembershipLookup[] getWsOwnerMembershipLookups()
> to query attributes on immediate memberships
>
> instead of group and subject (which are not for membership
> attribute assignments).

Sorry, that confuses me. The online documentation lists both
wsOwnerGroupLookups and wsOwnerSubject lookups as available
options?

Please allow me to ask in a different way.

Suppose that every time I add a subject to a group I then
assign an attribute on that membership called
'test_membership_1' and I assign a value (it is a string) to
that attribute. Each value assigned is unique across the
entire Grouper instance.

Now suppose I am given a value for that attribute, say 'zzz'.

What Grouper WS query(ies) do I issue to find the membership
that has test_membership_1 assigned with value 'zzz'? More
importantly how do I find the corresponding Subject and Group?

Thanks,

Scott



>
> Thanks, Chris
>
> -----Original Message----- From:
>
> [mailto:]
> On Behalf Of
> Scott Koranda Sent: Friday, April 13, 2012 7:14 PM To:
> grouper-users Subject: [grouper-users]
> getAttributeAssignment WS and scoping
>
> Hi,
>
> I sent into servicesRest/v2_1_000/attributeAssignments this
> JSON
>
> { "WsRestGetAttributeAssignmentsRequest":{
> "actAsSubjectId":"GrouperSystem",
> "attributeAssignType":"imm_mem",
> "includeAssignmentsOnAssignments":"F",
> "wsAttributeDefNameLookups":[ {
> "name":"Reference:COmanageDataSource:test_membership_1" }, {
> "name":"Reference:COmanageDataSource:test_membership_2" } ],
> "wsOwnerGroupLookups":[ {
> "name":"Reference:COmanageDataSource:COmanage:admin" } ],
> "wsOwnerSubjectLookups":[ {
> "id":""
> }
> ] } }
>
> and expected to only receive back details about attribute
> assignments for attributes test_membership_1 and
> test_membership_2 for the subject/member
> ''
> in the group
> 'Reference:COmanageDataSource:COmanage:admin'.
>
> That is, I expected the 'wsOwnerGroupLookups' and
> 'wsOwnerSubjectLookups' to scope the query.
>
> Instead I am receiving all attribute assignments for
> test_membership_[12] across all groups/subjects.
>
> How can I scope the query?
>
> Thanks,
>
> Scott



Archive powered by MHonArc 2.6.16.

Top of Page