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 <>
- Cc: grouper-users <>
- Subject: RE: [grouper-users] webservice to get custom attributes on a group ?
- Date: Mon, 18 Jun 2018 03:12:19 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:Vf+lsxYX8T5ctNlgijufkYf/LSx+4OfEezUN459isYplN5qZps2/YR7h7PlgxGXEQZ/co6odzbaO7ua4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahYb5+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v9LlgRgP2hygbNj456GDXhdJ2jKJHuxKquhhzz5fJbI2JKPZye6XQds4YS2VcRMZcTyxPDJ2hYYsTAeQPPuhYoIv8p1QSohSzHhOsCP/zxjJSmnP6wa833uI8Gg/GxgwgGNcOvWzaoNv3NKYTUP66zLPQwT7ecf5W2S396InTchwvvPqBWrdwftbRyUgvFgLKkE+QpJfkPzOOyusBqXWb7/J+WuKpjW4rsR9+rSWyxso1jITCm4wbylfB9SpjwYY1I8W1SE5nYd64CJtQsj+VN5d2QsMlXm5koiQ6xacYuZGhZCQK1JQnxwTBZPOdboeE+AjjVPuXITtgmXJlfrO/hwir/Uiky+38Us2030hQoipLiNnArn8N1wbU6siaUvty4F2h1SyB1gDI8u1EIVw0lbbDK5463LEwjIQTsUDdES/qgkn2jrWZdls+9eSw9uTneqvpppmaN4NulA7xL7kultSiAeQkMwgOW3KX+eKi273/+0DyXbZEjuUun6XHqp/WOdkXq6ukDwNIz4ou7hi/Aji63NgEmHQKLkxKdR2agIXsPlzCPuz0APSnj1ixnjpn2+rKM7n8DpnXMHTPjbPscaxg50NeyQc/1d5f6IxXB70dJf/+X0HxudPCARMnNgG5wvjrBMtg2o4bRG6DHrWWPaPXvFKH5e8vLfSDaYkIszjnMfcl/eThjXohlF8dY6ap2ZwXZWigEPl6JEuVfXXhjs4fHGkTowYyVevqh0acXjJJYHayQr486So8CIK7C4fMW5qhgKSb3Ce8Ap1ZeHxJCkyNEXfvcYWIQfAMaD+OIs9llTwEUruhR5U92hGpsQ/207tnLuzK9S0ErZ/vysJ66/HOmRw36DB4EtmR3mSDT2x7gm8EWzo70aJhrkFy11iO1K11j+JEGdFQ//9JVx01NZ/Yz+x0EdDyXQfBc8+MSFm6QtWnATAwQcwrw9IVYkZ9AMmtggre3yqyHbAVkbqLCIYq/a3Bwnj9P9x9xGre1Kk9k1kmRdNCNWK8hq546gjTH5DGk1+Am6a3bqQTwjTN9HyYwGqKvUFYSxJwUb7bUXwFZ0vWq8j56V3YT7+oF7snLhVNxdScJaRXd926xWlBEdLqJNTfbn/5u2qsHwvAkraFcIrrdnhb3CjBElUsjgYS4zOCNAw6C2GvuTSNIiZpEAelQ1L+/PM64Fi7VE4vhUneakZhxqi44DYUnvfaVuse2LRCtSs8/WYnVG2h1s7bXoLT7zFqe79RNJZkuA9K
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Can you please simply but thoroughly describe what you want to do? Also please include a diagram. And let me know what version of grouper you have is and if you have upgrade plans. Thanks Chris From: Mathieu Hetru [mailto:]
But on the classic interface i can see the attributes (see the picture on attachment file). Thanks for your help! Matthew De: "Mathieu Hetru" <> When i request the group UDL:ACT:APP:APPTEST : POST /grouper-ws/servicesRest/v2_2_000/attributeAssignments {"WsRestGetAttributeAssignmentsRequest": {"attributeAssignType":"group", "includeAssignmentsOnAssignments":"T", "wsOwnerGroupLookups":[ {"uuid":"f85e213692954e49a2e56043f0e1ba05"} ] } } The response is : {
"WsGetAttributeAssignmentsResults": {
"responseMetadata": {
"millis": "267",
"serverVersion": "2.3.0"
},
"resultMetadata": {
"resultCode": "SUCCESS",
"resultMessage": ", Found 2 results.",
"success": "T"
},
"wsAttributeAssigns": [
{
"attributeAssignActionId": "d7cc76d21e314f7d956c38a89d705f24",
"attributeAssignActionName": "assign",
"attributeAssignActionType": "immediate",
"attributeAssignDelegatable": "FALSE",
"attributeAssignType": "group",
"attributeDefId": "77274cdcf3c649659da5f20c890c8d6b",
"attributeDefName": "etc:legacy:attribute:legacyGroupTypeDef_GroupeUdl",
"attributeDefNameId": "ec1cc04cf68142fea5e7622228307288",
"attributeDefNameName": "etc:legacy:attribute:legacyGroupType_GroupeUdl",
"createdOn": "2017\/04\/26 13:40:38.865",
"disallowed": "F",
"enabled": "T",
"id": "f6e4d69c5ddb4c3a895830f68a3c1608",
"lastUpdated": "2017\/04\/26 13:40:38.865",
"ownerGroupId": "f85e213692954e49a2e56043f0e1ba05",
"ownerGroupName": "UDL:ACT:APP:APPTEST"
},
{
"attributeAssignActionId": "37500428684141c693898b28c5453367",
"attributeAssignActionName": "assign",
"attributeAssignActionType": "immediate",
"attributeAssignDelegatable": "FALSE",
"attributeAssignType": "group_asgn",
"attributeDefId": "d0192ecb2a18415c8b91057fc09178af",
"attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
"attributeDefNameId": "db15d0125cbc446e8e33fdc2ec1e83c5",
"attributeDefNameName": "etc:legacy:attribute:legacyAttribute_cn-ldap",
"createdOn": "2017\/04\/26 13:40:38.903",
"disallowed": "F",
"enabled": "T",
"id": "5b75c531bc404bb28dd263f3c2c08530",
"lastUpdated": "2017\/04\/26 13:40:38.903",
"ownerAttributeAssignId": "f6e4d69c5ddb4c3a895830f68a3c1608",
"wsAttributeAssignValues": [
{
"id": "9796e69938d64d209163c3c95dc33c9d",
"valueSystem": "APP:APPTEST"
}
]
}
],
"wsAttributeDefNames": [
{
"attributeDefId": "d0192ecb2a18415c8b91057fc09178af",
"attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
"displayExtension": "legacyAttribute_cn-ldap",
"displayName": "etc:legacy:attribute:legacyAttribute_cn-ldap",
"extension": "legacyAttribute_cn-ldap",
"idIndex": "10124",
"name": "etc:legacy:attribute:legacyAttribute_cn-ldap",
"uuid": "db15d0125cbc446e8e33fdc2ec1e83c5"
},
{
"attributeDefId": "77274cdcf3c649659da5f20c890c8d6b",
"attributeDefName": "etc:legacy:attribute:legacyGroupTypeDef_GroupeUdl",
"displayExtension": "legacyGroupType_GroupeUdl",
"displayName": "etc:legacy:attribute:legacyGroupType_GroupeUdl",
"extension": "legacyGroupType_GroupeUdl",
"idIndex": "10117",
"name": "etc:legacy:attribute:legacyGroupType_GroupeUdl",
"uuid": "ec1cc04cf68142fea5e7622228307288"
}
],
"wsAttributeDefs": [
{
"assignToAttributeDef": "F",
"assignToAttributeDefAssignment": "F",
"assignToEffectiveMembership": "F",
"assignToEffectiveMembershipAssignment": "F",
"assignToGroup": "F",
"assignToGroupAssignment": "F",
"assignToImmediateMembership": "F",
"assignToImmediateMembershipAssignment": "F",
"assignToMember": "F",
"assignToMemberAssignment": "F",
"assignToStem": "F",
"assignToStemAssignment": "F",
"attributeDefType": "attr",
"extension": "legacyAttributeDef_GroupeUdl",
"idIndex": "10030",
"multiAssignable": "F",
"multiValued": "F",
"name": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
"uuid": "d0192ecb2a18415c8b91057fc09178af",
"valueType": "string"
},
{
"assignToAttributeDef": "F",
"assignToAttributeDefAssignment": "F",
"assignToEffectiveMembership": "F",
"assignToEffectiveMembershipAssignment": "F",
"assignToGroup": "F",
"assignToGroupAssignment": "F",
"assignToImmediateMembership": "F",
"assignToImmediateMembershipAssignment": "F",
"assignToMember": "F",
"assignToMemberAssignment": "F",
"assignToStem": "F",
"assignToStemAssignment": "F",
"attributeDefType": "attr",
"extension": "legacyGroupTypeDef_GroupeUdl",
"idIndex": "10028",
"multiAssignable": "F",
"multiValued": "F",
"name": "etc:legacy:attribute:legacyGroupTypeDef_GroupeUdl",
"uuid": "77274cdcf3c649659da5f20c890c8d6b",
"valueType": "marker"
}
],
"wsGroups": [
{
"description": "Groupe pour tester le partage windows metiers2016 avec l'AD",
"displayExtension": "APPTEST",
"displayName": "Groupes de Lille:Groupes Activit\u00e9s:Groupes Applications:APPTEST",
"extension": "APPTEST",
"idIndex": "21691",
"name": "UDL:ACT:APP:APPTEST",
"typeOfGroup": "group",
"uuid": "f85e213692954e49a2e56043f0e1ba05"
}
],
"wsMemberships": [
],
"wsStems": [
],
"wsSubjects": [
]
}
}
De: "Mathieu Hetru" <> Hello, Yes i am sure, because i use the GrouperSystem login which is administrator... I have tested to add the attribute etc:legacy:attribute:legacyAttribute_nom-liste with the value "" on the group UDL:ACT:APP:APPTEST
: POST /grouper-ws/servicesRest/v2_2_000/attributeAssignments { "WsRestAssignAttributesRequest":{ "attributeAssignOperation":"assign_attr", "attributeAssignType":"group", "attributeAssignValueOperation":"add_value", "values":[ { "valueSystem":"" } ] , "wsAttributeDefNameLookups":[ { "name":"etc:legacy:attribute:legacyAttribute_nom-liste", "uuid":"" } ] , "wsOwnerGroupLookups":[ { "groupName":"UDL:ACT:APP:APPTEST" } ] } } but the response is : {
"WsAssignAttributesResults": {
"responseMetadata": {
"millis": "660",
"serverVersion": "2.3.0"
},
"resultMetadata": {
"resultCode": "INVALID_QUERY",
"resultMessage": "Problem with AttributeDefName[name=etc:legacy:attribute:legacyAttribute_nom-liste,uuid=1cba276c64114458a1e13272fa0981de], action: assign, owner: Group[name=UDL:ACT:APP:APPTEST,uuid=f85e213692954e49a2e56043f0e1ba05], edu.internet2.middleware.grouper.exception.AttributeOwnerNotInScopeException: Cant find a scope definition that fits this assignment: AttributeDef[name=etc:legacy:attribute:legacyAttributeDef_GroupeUdl,uuid=d0192ecb2a18415c8b91057fc09178af], Group[name=UDL:ACT:APP:APPTEST,uuid=f85e213692954e49a2e56043f0e1ba05]\n\tat edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.assertScopeOk(AttributeAssignBaseDelegate.java:939)\n\tat edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.internal_assignAttributeHelper(AttributeAssignBaseDelegate.java:518)\n\tat edu.internet2.middleware.grouper.attr.assign.AttributeAssignBaseDelegate.assignAttribute(AttributeAssignBaseDelegate.java:466)\n\tat edu.internet2.middleware.grouper.ws.rest.attribute.WsAssignAttributeLogic.attributeAssignOnOwnerHelper(WsAssignAttributeLogic.java:756)\n\tat edu.internet2.middleware.grouper.ws.rest.attribute.WsAssignAttributeLogic.assignAttributesHelper(WsAssignAttributeLogic.java:590)\n\tat edu.internet2.middleware.grouper.ws.GrouperServiceLogic.assignAttributes(GrouperServiceLogic.java:6376)\n\tat edu.internet2.middleware.grouper.ws.coresoap.GrouperService.assignAttributes(GrouperService.java:3296)\n\tat edu.internet2.middleware.grouper.ws.rest.GrouperServiceRest.assignAttributes(GrouperServiceRest.java:1685)\n\tat edu.internet2.middleware.grouper.ws.rest.method.GrouperWsRestPut$3.service(GrouperWsRestPut.java:194)\n\tat edu.internet2.middleware.grouper.ws.rest.method.GrouperRestHttpMethod$3.service(GrouperRestHttpMethod.java:104)\n\tat edu.internet2.middleware.grouper.ws.rest.GrouperRestServlet.service(GrouperRestServlet.java:199)\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:727)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\n\tat edu.internet2.middleware.grouper.ws.GrouperServiceJ2ee.doFilter(GrouperServiceJ2ee.java:670)\n\tat org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)\n\tat org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)\n\tat org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)\n\tat org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)\n\tat org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:612)\n\tat org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)\n\tat org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)\n\tat org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)\n\tat org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:421)\n\tat org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:190)\n\tat org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)\n\tat org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:314)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)\n\tat org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)\n\tat java.lang.Thread.run(Thread.java:745)\n. , Found 0 results.",
"success": "F"
},
"wsAttributeDefNames": [
{
"attributeDefId": "d0192ecb2a18415c8b91057fc09178af",
"attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
"displayExtension": "legacyAttribute_nom-liste",
"displayName": "etc:legacy:attribute:legacyAttribute_nom-liste",
"extension": "legacyAttribute_nom-liste",
"idIndex": "10122",
"name": "etc:legacy:attribute:legacyAttribute_nom-liste",
"uuid": "1cba276c64114458a1e13272fa0981de"
}
],
"wsAttributeDefs": [
{
"assignToAttributeDef": "F",
"assignToAttributeDefAssignment": "F",
"assignToEffectiveMembership": "F",
"assignToEffectiveMembershipAssignment": "F",
"assignToGroup": "F",
"assignToGroupAssignment": "F",
"assignToImmediateMembership": "F",
"assignToImmediateMembershipAssignment": "F",
"assignToMember": "F",
"assignToMemberAssignment": "F",
"assignToStem": "F",
"assignToStemAssignment": "F",
"attributeDefType": "attr",
"extension": "legacyAttributeDef_GroupeUdl",
"idIndex": "10030",
"multiAssignable": "F",
"multiValued": "F",
"name": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
"uuid": "d0192ecb2a18415c8b91057fc09178af",
"valueType": "string"
}
],
"wsGroups": [
{
"description": "Groupe pour tester le partage windows metiers2016 avec l'AD",
"displayExtension": "APPTEST",
"displayName": "Groupes de Lille:Groupes Activit\u00e9s:Groupes Applications:APPTEST",
"extension": "APPTEST",
"idIndex": "21691",
"name": "UDL:ACT:APP:APPTEST",
"typeOfGroup": "group",
"uuid": "f85e213692954e49a2e56043f0e1ba05"
}
],
"wsMemberships": [
],
"wsStems": [
],
"wsSubjects": [
]
}
} Matthew De: "Hyzer, Chris" <> Do you have the right privileges to see it? you sure the attributes are on that group? From:
[]
On Behalf Of Mathieu HETRU Hello, I have tested your solution in XML (with a group TEST) : POST /grouper-ws/servicesRest/v2_3_000/attributeAssignments
How can i set an attribute that is not present in the result response when i query the assignments on a specific group? Thanks! Mathew
Le 23/04/2018 à 15:21, Hyzer, Chris a écrit :
|
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu Hetru, 06/16/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu Hetru, 06/16/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu Hetru, 06/16/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 06/18/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 06/19/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Shilen Patel, 06/20/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu HETRU, 06/19/2018
- RE: [grouper-users] webservice to get custom attributes on a group ?, Hyzer, Chris, 06/18/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu Hetru, 06/16/2018
- Re: [grouper-users] webservice to get custom attributes on a group ?, Mathieu Hetru, 06/16/2018
Archive powered by MHonArc 2.6.19.