Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] webservice to get custom attributes on a group ?

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] webservice to get custom attributes on a group ?


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: Mathieu HETRU <>
  • Cc: "" <>
  • Subject: RE: [grouper-users] webservice to get custom attributes on a group ?
  • Date: Sun, 15 Apr 2018 12:21:30 +0000
  • Accept-language: en-US
  • Authentication-results: spf=pass (sender IP is 128.146.163.16) smtp.mailfrom=osu.edu; internet2.edu; dkim=none (message not signed) header.d=none;internet2.edu; dmarc=pass action=none header.from=osu.edu;
  • Ironport-phdr: 9a23:+yWfXR8421FZp/9uRHKM819IXTAuvvDOBiVQ1KB+0+gUIJqq85mqBkHD//Il1AaPAd2Araocw8Pt8InYEVQa5piAtH1QOLdtbDQizfssogo7HcSeAlf6JvO5JwYzHcBFSUM3tyrjaRsdF8nxfUDdrWOv5jAOBBr/KRB1JuPoEYLOksi7ze+/94HdbglSmDaxfa55IQmrownWqsQYm5ZpJLwryhvOrHtIeuBWyn1tKFmOgRvy5dq+8YB6/ShItP0v68BPUaPhf6QlVrNYFygpM3o05MLwqxbOSxaE62YGXWUXlhpIBBXF7A3/U5zsvCb2qvZx1S+HNsDtU7s6RSqt4LtqSB/wiScIKTg58H3MisdtiK5XuQ+tqwBjz4LRZoyeKfhwcb7Hfd4CRWRPQNtfVzBPDI2/YYsADesBMvpXoITmvVQCsR+zCBOwCO/zyDJFgGL9060g0+QmFAHLxAIsEs8KsHvOsNr1N78eWv2rwabS1zXMcfNX0ir65oTSfBwqvPaBUql0ccXL1UYvFBnJgkiOpYHrJD6V0f8Ns3WB4+V+SO2vlncqpgdsqTahwccsj5PGhoMTyl3c9CV5xpo1KsOiSE59f9GkDIVcuzuEOIRrX8MuW3xouCA7yr0YoJK7eCkKyJAjxxHBcfCHfZKI7xT+X+iSOTd1nGxpd6ijixqv9EWs1/DwWtSx3VZEoSdJjsXAu3UD1xPN5cWKSf5w80Kj1DqSygzf8vxILV43mKbBNpIszb89moAOvUnMBCP7mEH7gLeYdko6+eWk9+Hqb7Dmq5CAK4B0hATzProhl8G+HOs1NwcDUmiZ9Omy0bDs4Vb2T65QgfAwj6LXqorVJd4Bqa68GwJV0pgs6xK4Dzq+yNoVgX4JIE5LdR6ekYXnIkzCLOn/DfiknVugijBrx+3aPrL6BZXNM37Dn6r7cbZl8U5czxYzws5D6JJIC7EBJ/TzVlX2tNzFEh85Nwu0w+HkCNlnyoweXmePDreYMKPUr1CI+voiL/eWa4MJpTrwLuUp6+PzgXI8l18QcrWl0YcSZXC2APtrLEaUbH/pj9oDDGsGoxIyTOnwh12DVT5TaWyyX6U55jwjE42mCZ3MSZyugLCbwSu3AJNba3tBClCXDHfkbZuLVOoRaC6KOM9ujiQEVaS9S48mzRyuuxX6y716LurM5CIYr4vv1MVu5+LNjxEy7id5D8Cc02GWU2F0hX0ESyU33KB5vUxy1E2D0a5mjPxEC9Bf/e1GXRonNc2U8+svLtnuWgPMY5+pZWqcf53yBDgtTtM83pkOblpnBv2/iBHdmi6rB7sY0bKRUs8a6KXZijLbI892yDKO/6A7gkhuZ40FfTmsgqd09E6KXdXhlF6E0aumaPJPj2b26G6fwD/W7wljWwlqXPCABChHaw==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Mathieu,

 

I have not tracked through he code… but… this part of the request looks very odd to me.:

 

{
  "WsRestGetAttributeAssignmentsRequest":{

    "wsOwnerGroupLookups":[
      {

        "uuid":""
      }
    ]
  }
}

 

 

Based on the v2.3 wsdl the uuid in the xs:complexType name="WsGroupLookup Is nillable. So you should be able to not include that in the request. ( Or set it to the right value. Whatever that is. )

 

Maybe the code is using the UUID supplied instead of the name? ( Both should be “primary keys”, but in this case they would not point to the same thing in grouper. So I don’t know what the code should/would do. )

 

Just a wild guess. YMMV.

 

--

Carey Matthew

 

From: <> On Behalf Of Mathieu HETRU
Sent: Sunday, April 15, 2018 6:22 AM
To:
Subject: Re: [grouper-users] webservice to get custom attributes on a group ?

 

I call the webservice with the local account GrouperSystem which is admin account.



Thanks.



Mathieu


Le 15 avr. 2018 à 07:04, Hyzer, Chris <> a écrit :

Are you calling that with a grouper admin account?  Or with an account which can ATTR_READ or ADMIN on the group and READ or ADMIN on the attribute definitions?

 

Thanks

Chris

 

From: [] On Behalf Of Mathieu HETRU
Sent: Saturday, April 14, 2018 6:15 AM
To:
Subject: Re: [grouper-users] webservice to get custom attributes on a group ?

 

i tried with this :

POST /grouper-ws/servicesRest/v2_2_000/attributeAssignments

{
  "WsRestGetAttributeAssignmentsRequest":{
    "attributeAssignType":"group",
    "includeAssignmentsOnAssignments":"T",
    "wsOwnerGroupLookups":[
      {
        "name":"UDL:ACT:LISTE:DAF:daf-budget",
        "uuid":""
      }
    ]
  }
}


but it returns empty response :

{
    "WsGetAttributeAssignmentsResults": {
        "responseMetadata": {
            "millis": "81",
            "serverVersion": "2.3.0"
        },
        "resultMetadata": {
            "resultCode": "SUCCESS",
            "resultMessage": ", Found 0 results.",
            "success": "T"
        },
        "wsAttributeDefNames": [
        ],
        "wsAttributeDefs": [
        ],
        "wsGroups": [
        ],
        "wsMemberships": [
        ],
        "wsStems": [
        ],
        "wsSubjects": [
        ]
    }
}


<image001.png>

Mathieu HETRU
Responsable du bureau Web/ENT

Université de Lille - Campus Cité Scientifique
Direction des Systèmes d'Information
Service Intégration / Exploitation
Cellule Web/ENT

Bureau 47 - Bâtiment A3
Domaine universitaire de la Cité Scientifique
Avenue Carl Von Limé
BP 90179 59653 Villeneuve d'Ascq

Tél. :+33 (0)3 62 26 83 81 (numéro interne : 68381)

| www.univ-lille.fr

Le 14/04/2018 à 11:28, Mathieu HETRU a écrit :

Thanks.

The version of my Grouper is 2.3

I have tested with findgroups webservice but i am not retrieved the custom attributes.

And with the get attribute assignments webservice i don't understand the documentation of the webservice :-(


<image001.png>

Mathieu HETRU
Responsable du bureau Web/ENT

Université de Lille - Campus Cité Scientifique
Direction des Systèmes d'Information
Service Intégration / Exploitation
Cellule Web/ENT

Bureau 47 - Bâtiment A3
Domaine universitaire de la Cité Scientifique
Avenue Carl Von Limé
BP 90179 59653 Villeneuve d'Ascq

Tél. :+33 (0)3 62 26 83 81 (numéro interne : 68381)

| www.univ-lille.fr

Le 13/04/2018 à 19:32, Hyzer, Chris a écrit :

What version of Grouper?

 

If they are the new attribute framework, and marker attributes, you can use:

 

https://spaces.internet2.edu/display/Grouper/Get+Attribute+Assignments

 

If they are legacy type, they will be in the group detail object in the group object with findgroups

 

https://spaces.internet2.edu/display/Grouper/Find+Groups

 

Thanks

Chris

 

 

 

From: [] On Behalf Of Mathieu HETRU
Sent: Friday, April 13, 2018 10:55 AM
To:
Subject: [grouper-users] webservice to get custom attributes on a group ?

 

Hello,

I have added some custom attributes on a group like list-name (for mailing list) and list-type..

I wish to get or set this custom attributes with webservices rest.

But i don't know which webservice to use?

Thanks for your help!

--

<image002.png>

Mathieu HETRU
Responsable du bureau Web/ENT

Université de Lille - Campus Cité Scientifique
Direction des Systèmes d'Information
Service Intégration / Exploitation
Cellule Web/ENT

Bureau 47 - Bâtiment A3
Domaine universitaire de la Cité Scientifique
Avenue Carl Von Limé
BP 90179 59653 Villeneuve d'Ascq

Tél. :+33 (0)3 62 26 83 81 (numéro interne : 68381)

| www.univ-lille.fr

 

 




Archive powered by MHonArc 2.6.19.

Top of Page