grouper-users - Re: [grouper-users] getAttributeAssignment WS and scoping
Subject: Grouper Users - Open Discussion List
List archive
- From: Scott Koranda <>
- To: Chris Hyzer <>
- Cc: grouper-users <>
- Subject: Re: [grouper-users] getAttributeAssignment WS and scoping
- Date: Tue, 17 Apr 2012 00:42:28 -0500
Hi,
On Tue, Apr 17, 2012 at 12:19 AM, Chris Hyzer
<>
wrote:
> Well, we dont have value queries yet,
Ok, I think I understand now. So the best I can do right now is to
query to find all attribute assignments and then pick through the
results to find what I need. I think that is fine for the
proof-of-concept demo.
> you want me to add it?
How about if we chat at the Internet2 MM so that I can be sure I am
not missing anything and can explain in detail what I am attempting to
do?
Thanks much,
Scott
>
> 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
- [grouper-users] getAttributeAssignment WS and scoping, Scott Koranda, 04/13/2012
- RE: [grouper-users] getAttributeAssignment WS and scoping, Chris Hyzer, 04/16/2012
- Re: [grouper-users] getAttributeAssignment WS and scoping, Scott Koranda, 04/16/2012
- RE: [grouper-users] getAttributeAssignment WS and scoping, Chris Hyzer, 04/17/2012
- Re: [grouper-users] getAttributeAssignment WS and scoping, Scott Koranda, 04/17/2012
- [grouper-users] Licence Grouper, Brigitte Wallaert Taquet, 04/17/2012
- RE: [grouper-users] Licence Grouper, Chris Hyzer, 04/17/2012
- RE: [grouper-users] Licence Grouper, Brigitte Wallaert Taquet, 04/18/2012
- RE: [grouper-users] Licence Grouper, Chris Hyzer, 04/18/2012
- RE: [grouper-users] Licence Grouper, Chris Hyzer, 04/18/2012
- RE: [grouper-users] Licence Grouper, Brigitte Wallaert Taquet, 04/19/2012
- Re: [grouper-users] Licence Grouper, Wallaert-Taquet Brigitte, 04/19/2012
- Re: [grouper-users] Licence Grouper, Emily Eisbruch, 04/19/2012
- RE: [grouper-users] Licence Grouper, Chris Hyzer, 04/17/2012
- [grouper-users] Licence Grouper, Brigitte Wallaert Taquet, 04/17/2012
- Re: [grouper-users] getAttributeAssignment WS and scoping, Scott Koranda, 04/17/2012
- RE: [grouper-users] getAttributeAssignment WS and scoping, Chris Hyzer, 04/17/2012
- Re: [grouper-users] getAttributeAssignment WS and scoping, Scott Koranda, 04/16/2012
- RE: [grouper-users] getAttributeAssignment WS and scoping, Chris Hyzer, 04/16/2012
Archive powered by MHonArc 2.6.16.