grouper-users - RE: [grouper-users] webservice to get custom attributes on a group ?
Subject: Grouper Users - Open Discussion List
List archive
- From: "Hyzer, Chris" <>
- To: Gail H Lift <>, " Mailing List" <>
- Subject: RE: [grouper-users] webservice to get custom attributes on a group ?
- Date: Mon, 16 Apr 2018 16:10:41 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:x2JT8hdxvRHbbn361MIJtUvhlGMj4u6mDksu8pMizoh2WeGdxc26YxSN2/xhgRfzUJnB7Loc0qyK6/umATRIyK3CmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TW94jEIBxrwKxd+KPjrFY7OlcS30P2594HObwlSizexfb1/IA+qoQnNq8IbnZZsJqEtxxXTv3BGYf5WxWRmJVKSmxbz+MK994N9/ipTpvws6ddOXb31cKokQ7NYCi8mM30u683wqRbDVwqP6WACXWgQjxFFHhLK7BD+Xpf2ryv6qu9w0zSUMMHqUbw5Xymp4qF2QxHqlSgHLSY0/mHJhMJtkKJVrhGvpxJ9zI7VfI6aO+FzfrnBcd8GX2dNQtpdWi5HD4ihb4UPFe0BPeNAooXzpVUPrRq/Che2BO/31zRFmH/23bc70+Q6Hw3NwQstH9cSv3TUrNT0NbkdUfquwanJ1jXMc+la2Srl6IfWdBAhp+uAUqxtfsrM0EQiER7OgFuXqYzgJTyV1+INvnCa7+pmSeKglXQnqwdvrTiz2MsgkJfGiZ8Iylzc6CV5xoc1JcOhRE5/YN6kFJ9QuD+AO4t4WMMuW3xouD4kxb0Av563ZjYFx4k6xxPZdveJcJCI7wr9WOmLPTt0mXdodK+iixqv9EWgxOLxWtWo3FtPrCdKjNbBu38I2hHW9MSLVv9w8l+81TuBywzf8OVJLV0umabFNpIsxqQ8mocRvEnCBiP2llv5gayKekgh/+Wn9fnrba/iq5KZOYJ4lADzPb4rl8G8HOg4PA0DU3aH9eugyrHu+1DyTq9Qgf0siKbZtYjXJcQFqa69BA9Yyp4t5gq4ATu6ztgUhGQJIkpYdB6eiIjmIE/BLOr/Dfein1SjizBrx+3APrL8GJnNNmLDkLD9fblj90Fc1AszzddZ555ODbEBPe7zWkv2tNzfDR81KRC7w+HiCNll14MeX3yAArOBPa/Mq1CE+v8jLuyRaIMIpTrwLvYl6vHygXMlnFIQf7em0JQYZX29G/lqPVmVbH70jtcEC2gKvw4+TOLwiF2FVD5ef3OyUL485jA7CYOpE53DS5usgLyawCi3BIBWZnhYBVCKF3fkbZuLVOoRaC6KOM9ujiQEVaS9S48mzRyuuxX6y716LurM5CIYr4vv1MVu5+LNjxEy7id5D8Cc02GWU2F0hX0ESyU33KB5vUxy1E2D0a5mjPxEC9Bf/e1GXRonNc2U8+svJNnzXkrhNvOIRkruFtqmBRksS9M6w5kDb1srX53ogQrEwjKnGfoIjLGRH7Q19L7RxX78O5w7xnrbnIwojl0nRMQHEWy9muQ3owfJAJPRnl/cir2nb7803SjR+X2FwHbU+kxUTVgjf7/CWCVVRlrEoM69rmjCVb61Q/xzNwBB2NyPMINLcdavkE1LQvGlNdjDNTHi01ysDAqFk+vfJLHhfH8QiX3Q
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Example of grouper client in debug mode https://spaces.internet2.edu/display/Grouper/Grouper+Client [mchyzer@flash pennGroupsClient-2.3.0]$ java -jar grouperClient.jar --operation=getAttributeAssignmentsWs --attributeAssignType=group --includeAssignmentsOnAssignments=true
--ownerGroupNames=penn:community:serviceProviders --debug=true DEBUG: WebService: connecting to URL: 'https://servicewhatever.upenn.edu/grouperWs/servicesRest/v2_3_000/attributeAssignments' DEBUG: configObjectPropertyCount: 160 ################ REQUEST START (indented) ############### POST /grouperWs/servicesRest/v2_3_000/attributeAssignments HTTP/1.1 Connection: close Authorization: Basic xxxxxxxxxxxxxxxx User-Agent: Jakarta Commons-HttpClient/3.1 Host: servicewhatever.upenn.edu:-1 Content-Length: 321 Content-Type: text/xml; charset=UTF-8 <WsRestGetAttributeAssignmentsRequest> <attributeAssignType>group</attributeAssignType> <wsOwnerGroupLookups> <WsGroupLookup> <groupName>penn:community:serviceProviders</groupName> </WsGroupLookup> </wsOwnerGroupLookups> <includeAssignmentsOnAssignments>T</includeAssignmentsOnAssignments> </WsRestGetAttributeAssignmentsRequest> ################ REQUEST END ############### ################ RESPONSE START (indented) ############### HTTP/1.1 200 OK Date: Mon, 16 Apr 2018 16:03:46 GMT Set-Cookie: JSESSIONID=xxxxxxxxxxxx; Path=/grouperWs X-Grouper-resultCode: SUCCESS X-Grouper-success: T X-Grouper-resultCode2: NONE Content-Type: text/xml;charset=UTF-8 Vary: Accept-Encoding Connection: close Transfer-Encoding: chunked Set-Cookie: BIGipServerPFA-grouperws_pool=123456789.20480.0000; expires=Mon, 16-Apr-2018 22:03:47 GMT; path=/; Httponly; Secure <WsGetAttributeAssignmentsResults> <wsAttributeDefs> <WsAttributeDef> <idIndex>10090</idIndex> <extension>loaderMetadataDef</extension> <name>penn:etc:attribute:loaderMetadata:loaderMetadataDef</name> <uuid>f37b6c6edf334b1e9fe0d6adb937134d</uuid> <attributeDefType>type</attributeDefType> <multiAssignable>F</multiAssignable> <multiValued>F</multiValued> <valueType>marker</valueType> <assignToAttributeDef>F</assignToAttributeDef> <assignToAttributeDefAssignment>F</assignToAttributeDefAssignment> <assignToEffectiveMembership>F</assignToEffectiveMembership> <assignToEffectiveMembershipAssignment>F</assignToEffectiveMembershipAssignment> <assignToGroup>F</assignToGroup> <assignToGroupAssignment>F</assignToGroupAssignment> <assignToImmediateMembership>F</assignToImmediateMembership> <assignToImmediateMembershipAssignment>F</assignToImmediateMembershipAssignment> <assignToMember>F</assignToMember> <assignToMemberAssignment>F</assignToMemberAssignment> <assignToStem>F</assignToStem> <assignToStemAssignment>F</assignToStemAssignment> </WsAttributeDef> ...etc... </wsAttributeDefs> <wsAttributeDefNames> <WsAttributeDefName> <idIndex>13518</idIndex> <extension>grouperLoaderMetadataLastFullMillisSince1970</extension> <displayExtension>grouperLoaderMetadataLastFullMillisSince1970</displayExtension> <description>Millis since 1970 that this group was fully processed</description> <displayName>penn:etc:attribute:loaderMetadata:grouperLoaderMetadataLastFullMillisSince1970</displayName> <name>penn:etc:attribute:loaderMetadata:grouperLoaderMetadataLastFullMillisSince1970</name> <uuid>aca04df7426443799acdcd60e00e9245</uuid> <attributeDefId>edfad92de55c416d97aefa2c77ce899e</attributeDefId> <attributeDefName>penn:etc:attribute:loaderMetadata:loaderMetadataValueDef</attributeDefName> </WsAttributeDefName> ...etc... </wsAttributeDefNames> <wsAttributeAssigns> <WsAttributeAssign> <disallowed>F</disallowed> <attributeAssignActionType>immediate</attributeAssignActionType> <attributeAssignDelegatable>FALSE</attributeAssignDelegatable> <attributeAssignActionId>ac3fe6d2391a423fb67d550cd034c816</attributeAssignActionId> <attributeAssignActionName>assign</attributeAssignActionName> <attributeAssignType>group_asgn</attributeAssignType> <attributeDefNameId>aca04df7426443799acdcd60e00e9245</attributeDefNameId> <attributeDefNameName>penn:etc:attribute:loaderMetadata:grouperLoaderMetadataLastFullMillisSince1970</attributeDefNameName> <attributeDefId>edfad92de55c416d97aefa2c77ce899e</attributeDefId> <attributeDefName>penn:etc:attribute:loaderMetadata:loaderMetadataValueDef</attributeDefName> <wsAttributeAssignValues> <WsAttributeAssignValue> <id>60d3f6ce8e0443fb898837981fdb1b0e</id> <valueSystem>1523877305078</valueSystem> </WsAttributeAssignValue> </wsAttributeAssignValues> <createdOn>2018/01/24 07:15:12.468</createdOn> <enabled>T</enabled> <id>cd72871d9b634bfdb18443b6cb6fccda</id> <lastUpdated>2018/01/24 07:15:12.468</lastUpdated> <ownerAttributeAssignId>0137b81beb494ce2a9e815a50e018c3a</ownerAttributeAssignId> </WsAttributeAssign> ...etc... </wsAttributeAssigns> <resultMetadata> <resultCode>SUCCESS</resultCode> <resultMessage>, Found 11 results. </resultMessage> <success>T</success> </resultMetadata> <responseMetadata> <resultWarnings></resultWarnings> <millis>646</millis> <serverVersion>2.3.0</serverVersion> </responseMetadata> <wsGroups> <WsGroup> <extension>serviceProviders</extension> <typeOfGroup>group</typeOfGroup> <displayExtension>serviceProviders</displayExtension> <displayName>penn:community:serviceProviders</displayName> <name>penn:community:serviceProviders</name> <uuid>d836336699e24404a442a1cfb2027a6c</uuid> <idIndex>194760</idIndex> </WsGroup> </wsGroups> <wsStems/> <wsMemberships/> <wsSubjects/> </WsGetAttributeAssignmentsResults> DEBUG: Elapsed time: 2353ms [mchyzer@flash pennGroupsClient-2.3.0]$
--operation=getAttributeAssignmentsWs --attributeAssignType=group|member|stem|any_mem|imm_mem|attr_def|any_mem_asgn|attr_def_asgn|group_asgn|imm_mem_asgn|mem_asgn|stem_asgn
[--includeAssignmentsOnAssignments=true|false] [--attributeDefNames=a:b,b:c] [--attributeDefUuids=1a,2b] [--attributeDefIdndexes=12345,23456] [--attributeDefNameNames=a:b,b:c] [--attributeDefNameUuids=1a,2b] [--attributeDefNameIdIndexes=12345,23456] [--ownerAttributeDefNames=a:b,b:c]
[--ownerAttributeDefUuids=1a,2b] [--ownerAttributeDefIdIndexes=12345] [--ownerGroupNames=a:b:c,a:b:d] [--ownerGroupUuids=1234,abcd] [--ownerGroupIdIndexes=12345] [--owner0SubjectId=subjId0] [--owner0SubjectIdentifier=subjIdent0] [--owner0SubjectSource=source0]
[--ownerMembershipUuids=abc,bcd] [--ownerStemNames=a:b,b:c] [--ownerStemUuids=1a,2b] [--ownerStemIdIndexes] [--ownerMembershipAny0SubjectId=12] [--ownerMembershipAny0SubjectIdentifier=ab] [--ownerMembershipAny0SourceId=xyz] [--ownerMembershipAny0GroupName=3c]
[--ownerMembershipAny0GroupUuid=1a] [--ownerMembershipAny0GroupIdIndex=12345] [--attributeAssignUuids=a1,b2] [--attributeDefValueType=floating|integer|memberId|string|timestamp] [--theValue=123] [--includeAssignmentsFromAssignments=T|F] [--attributeDefType==attr|domain|type|limit|perm]
[--assignAssignOwnerAttributeAssignUuids=a1,b2] [--assignAssignOwnerNamesOfAttributeDefs=a:b,b:c] [--assignAssignOwnerUuidsOfAttributeDefs=1a,2b] [--assignAssignOwnerNamesOfAttributeDefNames=a:b,b:c] [--assignAssignOwnerUuidsOfAttributeDefNames=1a,2b] [--assignAssignOwnerActions=read]
[--enabled=A|T|F] [--actions=read,write] [--includeGroupDetail=true|false] [--includeSubjectDetail=true|false] [--subjectAttributeNames=name0,name1] [--actAsSubjectId=subjId] [--actAsSubjectIdentifier=subjIdent] [--actAsSubjectSource=source] [--saveResultsToFile=fileName]
[--outputTemplate=somePattern] [--paramName0=name0] [--paramValue0=value1] [--paramNameX=xthParamName] [--paramValueX=xthParamValue] [--debug=true] [--clientVersion=someVersion] From: Gail H Lift [mailto:]
Do you have an example of "This reminds me that using the grouperClient on the command line in debug mode is a great way to get examples of web service calls"? (and maybe reply to list?) On Mon, Apr 16, 2018 at 10:23 AM, Hyzer, Chris <> wrote:
--
|
- [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/13/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/13/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/14/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/14/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/15/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/15/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Black, Carey M., 04/15/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/15/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/16/2018
- Message not available
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/16/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/20/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/20/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/20/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/23/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/23/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Black, Carey M., 04/15/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/15/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/20/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/23/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/23/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/15/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/14/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 04/14/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 04/13/2018
Archive powered by MHonArc 2.6.19.