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: Mathieu HETRU <>, "" <>
- Subject: RE: [grouper-users] webservice to get custom attributes on a group ?
- Date: Mon, 23 Apr 2018 13:21:42 +0000
- Accept-language: en-US
- Authentication-results: univ-lille.fr; dkim=none (message not signed) header.d=none;univ-lille.fr; dmarc=none action=none header.from=isc.upenn.edu;
- Ironport-phdr: 9a23:0w2UExBbS+werFFh6b/6UyQJP3N1i/DPJgcQr6AfoPdwSP36pMqwAkXT6L1XgUPTWs2DsrQY07GQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDSwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95RWSJfH428c4UBAekPPelaronyu1QBoACkBQWwGO/i0CNEimP00KA8zu8vERvG3AslH98WvnjartX0NaYMXuCv1KXD0CvOb/NM2Tf884jEfA0qrPaJXb1sccrQyUguGB3fjliLqIzlJC+a2v4Qs2iD8eVgU+Svh3Q5pA5svzii38EhgZTHiIISz1DL7yR5wIAtKN25Tk57fcCrEIFWty6EK4t6XNkuTH91tyYn0rEGpJi7fCkUyJg+wx7faviHc4yW7R75WuaROy90hH1keLKjhxay7FOvxvfgWcmz1VZGtjdFksHSuXAL0Rzf8NaIReZg/kqnxD2B1BjT5/laLU8uiabXNpsszqMtmpYOtEnDECD7lFnqgKKTdEgr5Oel5uDib7jjuJOQK4t5hhnjPqkghsCzG+A1PhUUU2SF5Oix0Kfv8VD7TbhLlvE2nLfWvZPGKckeo6O2HRJZ3Zwn5hu6ATqqztUVkmMCIV9GZR6HgY3kN0/SLP/kE/uyhUmnni1xyPDcJLLhB43ALnjdn7flerZw81ZSxRY0w9xD6Z9YE78PLvX9V0Pos9zXFQE2Pxazw+b6FNVyzYQeWX+JAqCEKq/SqUWI5uUzI+aSeIAVpDf9K/8j5/L0in85hEMdfa2u3ZsQa3C0BOhpI0KcYXb0g9cBF3kFvhYmQeD0klKOTSNfanOvU64h+z02DYymAIjfSoyxhbGM3jm0E5JSa21DD12AD2vkeoGcV/cJci2SI8thkjIeVbimTo8szRSuuxP6y7tnL+vb5DcYuIni1Nhu++Lfjwwy9SRqAMSb1WGBVX97kX4VRzMuxqBwvVR9ykuf0ah/m/FYGsZT5/RUUgciK5Hc1fV2C83pWg3fZNeJU02rQtGnATEqUtIx2MECb1x8G9WkkhDMwTCqA7kLmLyXGpA46LzT0GXsJ5U193GT8aA9j1grX4NvGFGcu+Yr8gHPB4/EjgOZmrqwaIwB2i/TsWOCyW6D+k9CBko4G6rfWm0Ha1GTsM/0/FjqTrmyBK4hPxcbj8OON+ECPtLzikheSe2mJc/TeXmZmmGsCAyOy6/WKofmZjNO8j/aDR1OsxEB8GzCfSM+HCa66SqKCTduBEDieWvt6uI4tWu2SElywg2XOR4yn4Gp8wIY0KTPA8gY2agJ7WJ48215
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
If this is an assignment on an assignment, you first need to query to get the attribute assign id where the value is [mchyzer@flash pennGroupsClient-2.3.0]$ java -jar grouperClient.jar --operation=getAttributeAssignmentsWs --attributeAssignType=group --includeAssignmentsOnAssignments=true
--ownerGroupNames=a:b:c:groupName --debug=true POST /grouperWs/servicesRest/v2_3_000/attributeAssignments HTTP/1.1 Connection: close Authorization: Basic xxxxxxxxxxxxxxxx User-Agent: Jakarta Commons-HttpClient/3.1 Host: grouperws.apps.upenn.edu:-1 Content-Length: 321 Content-Type: text/xml; charset=UTF-8 <WsRestGetAttributeAssignmentsRequest> <attributeAssignType>group</attributeAssignType> <wsOwnerGroupLookups> <WsGroupLookup> <groupName>a:b:c:groupName</groupName> </WsGroupLookup> </wsOwnerGroupLookups> <includeAssignmentsOnAssignments>T</includeAssignmentsOnAssignments> </WsRestGetAttributeAssignmentsRequest> ################ RESPONSE START (indented) ############### HTTP/1.1 200 OK Date: Mon, 23 Apr 2018 12:43:25 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=3810792620.20480.0000; expires=Mon, 23-Apr-2018 18:43:26 GMT; path=/; Httponly; Secure <WsGetAttributeAssignmentsResults> <WsAttributeDefName> <idIndex>12892</idIndex> <extension>legacyAttribute_grouperLoaderQuartzCron</extension> <displayExtension>legacyAttribute_grouperLoaderQuartzCron</displayExtension> <displayName>etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron</displayName> <name>etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron</name> <uuid>ff79e20c06314ee380bb492def9de796</uuid> <attributeDefId>ef7039cf58b34783b6b012cc4799073e</attributeDefId> <attributeDefName>etc:legacy:attribute:legacyAttributeDef_grouperLoader</attributeDefName> </WsAttributeDefName> <WsAttributeAssign> <disallowed>F</disallowed> <attributeAssignActionType>immediate</attributeAssignActionType> <attributeAssignDelegatable>FALSE</attributeAssignDelegatable> <attributeAssignActionId>d459f64e432e4820a4b79de775fd0ab1</attributeAssignActionId> <attributeAssignActionName>assign</attributeAssignActionName> <attributeAssignType>group_asgn</attributeAssignType> <attributeDefNameId>ff79e20c06314ee380bb492def9de796</attributeDefNameId> <attributeDefNameName>etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron</attributeDefNameName> <attributeDefId>ef7039cf58b34783b6b012cc4799073e</attributeDefId> <attributeDefName>etc:legacy:attribute:legacyAttributeDef_grouperLoader</attributeDefName> <wsAttributeAssignValues> <WsAttributeAssignValue> <id>285dd3e3e3bf4f78955a67395de7e8df</id> <valueSystem>0 15 7 * * ?</valueSystem> </WsAttributeAssignValue> </wsAttributeAssignValues> <createdOn>2016/07/09 23:06:37.253</createdOn> <enabled>T</enabled> <id>781992a9dc0e4b58a0202e9b24e94f87</id> <lastUpdated>2016/07/09 23:06:37.253</lastUpdated> <ownerAttributeAssignId>ddf1e57538af4b3aaf4b0673b5803511</ownerAttributeAssignId> </WsAttributeAssign> </wsAttributeAssigns> <resultMetadata> <resultCode>SUCCESS</resultCode> <resultMessage>, Found 11 results. </resultMessage> <success>T</success> </resultMetadata> <responseMetadata> <resultWarnings></resultWarnings> <millis>590</millis> <serverVersion>2.3.0</serverVersion> </responseMetadata> <wsGroups> <WsGroup> <extension>groupName</extension> <typeOfGroup>group</typeOfGroup> <displayExtension>groupName</displayExtension> <displayName>a:b:c:groupName</displayName> <name> a:b:c:groupName </name> <uuid>d836336699e24404a442a1cfb2027a6c</uuid> <idIndex>194760</idIndex> </WsGroup> </wsGroups> <wsStems/> <wsMemberships/> <wsSubjects/> </WsGetAttributeAssignmentsResults> #################################################### Then assign the value: [mchyzer@flash pennGroupsClient-2.3.0]$ java -jar grouperClient.jar --operation=assignAttributesWs --attributeAssignOperation=assign_attr --attributeAssignType=group_asgn
--ownerAttributeAssignUuids=ddf1e57538af4b3aaf4b0673b5803511 --attributeDefNameNames=penn:etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron --attributeAssignValueOperation=replace_values --values0System="0 16 7 * * ?" --debug=true ################ 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: grouperws.apps.upenn.edu:-1 Content-Length: 707 Content-Type: text/xml; charset=UTF-8 <WsRestAssignAttributesRequest> <attributeAssignOperation>assign_attr</attributeAssignOperation> <attributeAssignValueOperation>replace_values</attributeAssignValueOperation> <wsOwnerAttributeAssignLookups> <WsAttributeAssignLookup> <uuid>ddf1e57538af4b3aaf4b0673b5803511</uuid> </WsAttributeAssignLookup> </wsOwnerAttributeAssignLookups> <values> <WsAttributeAssignValue> <valueSystem>0 16 7 * * ?</valueSystem> </WsAttributeAssignValue> </values> <attributeAssignType>group_asgn</attributeAssignType> <wsAttributeDefNameLookups> <WsAttributeDefNameLookup> <name>penn:etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron</name> </WsAttributeDefNameLookup> </wsAttributeDefNameLookups> </WsRestAssignAttributesRequest> ################ REQUEST END ############### ################ RESPONSE START (indented) ############### HTTP/1.1 200 OK Date: Mon, 23 Apr 2018 13:09:14 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=3861124268.20480.0000; expires=Mon, 23-Apr-2018 19:09:15 GMT; path=/; Httponly; Secure <WsAssignAttributesResults> <wsAttributeDefs> <WsAttributeDef> <idIndex>10046</idIndex> <extension>legacyAttributeDef_grouperLoader</extension> <name>etc:legacy:attribute:legacyAttributeDef_grouperLoader</name> <uuid>ef7039cf58b34783b6b012cc4799073e</uuid> <attributeDefType>attr</attributeDefType> <multiAssignable>F</multiAssignable> <multiValued>F</multiValued> <valueType>string</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> </wsAttributeDefs> <wsAttributeDefNames> <WsAttributeDefName> <idIndex>12892</idIndex> <extension>legacyAttribute_grouperLoaderQuartzCron</extension> <displayExtension>legacyAttribute_grouperLoaderQuartzCron</displayExtension> <displayName>etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron</displayName> <name>etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron</name> <uuid>ff79e20c06314ee380bb492def9de796</uuid> <attributeDefId>ef7039cf58b34783b6b012cc4799073e</attributeDefId> <attributeDefName>etc:legacy:attribute:legacyAttributeDef_grouperLoader</attributeDefName> </WsAttributeDefName> </wsAttributeDefNames> <wsAttributeAssignResults> <WsAssignAttributeResult> <wsAttributeAssignValueResults>
<WsAttributeAssignValueResult> <changed>T</changed> <deleted>T</deleted> <wsAttributeAssignValue> <id>285dd3e3e3bf4f78955a67395de7e8df</id> <valueSystem>0 15 7 * * ?</valueSystem> </wsAttributeAssignValue> </WsAttributeAssignValueResult> <WsAttributeAssignValueResult> <changed>T</changed> <deleted>F</deleted> <wsAttributeAssignValue> <id>4b6c8b5df143448994ceaf6aed68856c</id> <valueSystem>0 16 7 * * ?</valueSystem> </wsAttributeAssignValue> </WsAttributeAssignValueResult> </wsAttributeAssignValueResults> <wsAttributeAssigns> <WsAttributeAssign> <disallowed>F</disallowed> <attributeAssignActionType>immediate</attributeAssignActionType> <attributeAssignDelegatable>FALSE</attributeAssignDelegatable> <attributeAssignActionId>d459f64e432e4820a4b79de775fd0ab1</attributeAssignActionId> <attributeAssignActionName>assign</attributeAssignActionName> <attributeAssignType>group_asgn</attributeAssignType> <attributeDefNameId>ff79e20c06314ee380bb492def9de796</attributeDefNameId> <attributeDefNameName>etc:legacy:attribute:legacyAttribute_grouperLoaderQuartzCron</attributeDefNameName> <attributeDefId>ef7039cf58b34783b6b012cc4799073e</attributeDefId> <attributeDefName>etc:legacy:attribute:legacyAttributeDef_grouperLoader</attributeDefName> <wsAttributeAssignValues> <WsAttributeAssignValue> <id>4b6c8b5df143448994ceaf6aed68856c</id> <valueSystem>0 16 7 * * ?</valueSystem> </WsAttributeAssignValue> </wsAttributeAssignValues> <createdOn>2016/07/09 23:06:37.253</createdOn> <enabled>T</enabled> <id>781992a9dc0e4b58a0202e9b24e94f87</id> <lastUpdated>2016/07/09 23:06:37.253</lastUpdated> <ownerAttributeAssignId>ddf1e57538af4b3aaf4b0673b5803511</ownerAttributeAssignId> </WsAttributeAssign> </wsAttributeAssigns> <changed>F</changed> <valuesChanged>T</valuesChanged> <deleted>F</deleted> </WsAssignAttributeResult> </wsAttributeAssignResults> <resultMetadata> <resultCode>SUCCESS</resultCode> <resultMessage>, Found 1 results. </resultMessage> <success>T</success> </resultMetadata> <responseMetadata> <resultWarnings></resultWarnings> <millis>1216</millis> <serverVersion>2.3.0</serverVersion> </responseMetadata> <wsGroups/> <wsStems/> <wsMemberships/> <wsSubjects/> </WsAssignAttributesResults> From: Mathieu HETRU [mailto:]
no.. in the sample, there is not an example with value for assignment.
Le 20/04/2018 à 23:21, Hyzer, Chris a écrit :
|
- Re: [grouper-users] webservice to get custom attributes on a group ?, (continued)
- 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 ?, 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
Archive powered by MHonArc 2.6.19.