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: Mathieu HETRU <>
  • To:
  • Subject: Re: [grouper-users] webservice to get custom attributes on a group ?
  • Date: Sun, 27 May 2018 20:42:48 +0200
  • Ironport-phdr: 9a23:fLTm5RboNLO19AMP0kOGx8v/LSx+4OfEezUN459isYplN5qZr8W9bnLW6fgltlLVR4KTs6sC17KN9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCazbL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjmk8qxlSgLniD0fOjAk7m/XhMx+gqFVrh2vqBNwwZLbbZqPO/ZiZK7QZ88WSGRDU8tXSidPApm8b4wKD+cZOuhXtZX9p1sPrRSgGAmnGeHhxDBWiHHq06IxzuMsEQTc0ww8H9IOsWrbrMjvOKcST++10LPIzSjYYvNL3zf96ZbIfgklofGNWbJwddTexVMhFwPfl1idr5HuMT2S1uQIqWeb7uxgWPqui24htwF+vCKvxsEyhYnVmI4Z0E7L+jhkwIotON24Tk97YcC9HJtUtiGaM492Td04T2FmoiY20rIGuZ+nfCgK1ZQo3ATTZOCAc4iN+h7jSf6RLil+hHJjYr6wmQu98VWmx+bhVce0yE5HojdBn9TDrHwByRze58edRvdg4Eus3SyD2g7d5+1cPEw5m6XWJ4Q/zrIsl5cfq0bOEjXrlEnoiqKda18q9fKy6+v9Z7Xrvp+cOJFwigH5Kqkun8O+DfkiPggTWWib+Pq82KTn/U34RLVKiuM5nrPXsJDAPcgbp6i5DBFJ0os79hqyCzir3M4GkXQHI19JYg+Lg5btNl3ULv31A++zg1G2nzdqw/DGMKfhApLILnXblbfuZ6p9605dyAUt0NBT/ZJUBa8dIPLpR0/8r8HYDhk4Mwyq2urnDNR91ocaWW2RGKOZPrnSvUeS5u0zO+mMeJMVuDHlJvgq/f7uimI5mUcDcqmzxJcXdWu4Eep8I0WCenfshtYBEXwWvgolUuDmklyCUThPZ3msRaI84C80CJ64AYvZWI+inaGBj2+HGchZfGdbEl2WVGrzep+fc/YKdC+IJMJ9yHoJWaXyZZUm0ESLvRP6yrd6Zsr5xhcl/cbm3cR15uDO0xE/6SZpJ9mb0n/IS2Bwmm5OSSVgj/M3mlB01lrWifswuPdfD9EGv/4=

Hello,

I wish use your solution but in Json request.

Have you the sample in json?

Thanks!

Mathieu


Université de Lille

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 23/04/2018 à 15:21, Hyzer, Chris a écrit :

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 []
Sent: Monday, April 23, 2018 3:58 AM
To: Hyzer, Chris ;
Subject: Re: [grouper-users] webservice to get custom attributes on a group ?

 

no.. in the sample, there is not an example with value for assignment.


Université de Lille

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 20/04/2018 à 23:21, Hyzer, Chris a écrit :

I think from your followup email you figured this out right?

 

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

 

Thanks!

But i wish set a value for a specific attribute and the documentation don't show the value : https://github.com/Internet2/grouper/blob/master/grouper-ws/grouper-ws/doc/samples/assignAttributes/WsSampleAssignAttributesRest_json.txt

Any idea?

 

 


Université de Lille

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 16/04/2018 à 16:23, Hyzer, Chris a écrit :

Thanks Carey!

 

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 next can i set a value of one parameter? you think?

You mean set the value of an attribute?  Yes, use the assign attribute

 

https://spaces.internet2.edu/display/Grouper/Assign+Attributes

 

Thanks

Chris

 

From: [] On Behalf Of Mathieu HETRU
Sent: Sunday, April 15, 2018 12:28 PM
To:
Subject: Re: [grouper-users] webservice to get custom attributes on a group ?

 

Yes!!!!!

It works!!!!!

 

POST /grouper-ws/servicesRest/v2_2_000/attributeAssignments

{
  "WsRestGetAttributeAssignmentsRequest":{
    "attributeAssignType":"group",
    "includeAssignmentsOnAssignments":"T",
    "wsOwnerGroupLookups":[
      {
        "uuid":"d23ba637504f47699f3265e28f9c262f"
      }
    ]
  }
}

 

 

and it returns :

{
    "WsGetAttributeAssignmentsResults": {
        "responseMetadata": {
            "millis": "247",
            "serverVersion": "2.3.0"
        },
        "resultMetadata": {
            "resultCode": "SUCCESS",
            "resultMessage": ", Found 4 results.",
            "success": "T"
        },
        "wsAttributeAssigns": [
            {
                "attributeAssignActionId": "4f13846014244b31a807ccc34ebb9bd0",
                "attributeAssignActionName": "assign",
                "attributeAssignActionType": "immediate",
                "attributeAssignDelegatable": "FALSE",
                "attributeAssignType": "group",
                "attributeDefId": "31b1437c0db84a62ba746a91d5e72589",
                "attributeDefName": "etc:legacy:attribute:legacyGroupTypeDef_GroupeUdl",
                "attributeDefNameId": "f8c151b5a4b148d59c2b27fd2108f060",
                "attributeDefNameName": "etc:legacy:attribute:legacyGroupType_GroupeUdl",
                "createdOn": "2018/02/15 11:50:17.295",
                "disallowed": "F",
                "enabled": "T",
                "id": "c073b0f6fd144c0c867f35b28bdb1808",
                "lastUpdated": "2018/02/15 11:50:17.295",
                "ownerGroupId": "d23ba637504f47699f3265e28f9c262f",
                "ownerGroupName": "UDL:ACT:LISTE:DAF:daf-budget"
            },
            {
                "attributeAssignActionId": "08b5b5c036644014bcf4d0a34fb37420",
                "attributeAssignActionName": "assign",
                "attributeAssignActionType": "immediate",
                "attributeAssignDelegatable": "FALSE",
                "attributeAssignType": "group_asgn",
                "attributeDefId": "2a8e63a0b7904e09b1ed60a191aa9f23",
                "attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
                "attributeDefNameId": "a6a9dd385e004dbaa9003e1caa8eb385",
                "attributeDefNameName": "etc:legacy:attribute:legacyAttribute_cn-ldap",
                "createdOn": "2018/02/15 11:50:17.321",
                "disallowed": "F",
                "enabled": "T",
                "id": "37b535aaa83c4d259ff2e75fc9f3009e",
                "lastUpdated": "2018/02/15 11:50:17.321",
                "ownerAttributeAssignId": "c073b0f6fd144c0c867f35b28bdb1808",
                "wsAttributeAssignValues": [
                    {
                        "id": "ac7e88131ccd4a148caf65323a5ae3e5",
                        "valueSystem": "LISTE:daf-budget"
                    }
                ]
            },
            {
                "attributeAssignActionId": "08b5b5c036644014bcf4d0a34fb37420",
                "attributeAssignActionName": "assign",
                "attributeAssignActionType": "immediate",
                "attributeAssignDelegatable": "FALSE",
                "attributeAssignType": "group_asgn",
                "attributeDefId": "2a8e63a0b7904e09b1ed60a191aa9f23",
                "attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
                "attributeDefNameId": "748eaf7646f44615a895ae88173d37b1",
                "attributeDefNameName": "etc:legacy:attribute:legacyAttribute_nom-liste",
                "createdOn": "2018/02/15 12:41:23.981",
                "disallowed": "F",
                "enabled": "T",
                "id": "122c499dff5244ea93992d82cb31e311",
                "lastUpdated": "2018/02/15 12:41:23.981",
                "ownerAttributeAssignId": "c073b0f6fd144c0c867f35b28bdb1808",
                "wsAttributeAssignValues": [
                    {
                        "id": "5e9859ee6d1f4be69cb5d770bc3c969b",
                        "valueSystem":
                    }
                ]
            },
            {
                "attributeAssignActionId": "08b5b5c036644014bcf4d0a34fb37420",
                "attributeAssignActionName": "assign",
                "attributeAssignActionType": "immediate",
                "attributeAssignDelegatable": "FALSE",
                "attributeAssignType": "group_asgn",
                "attributeDefId": "2a8e63a0b7904e09b1ed60a191aa9f23",
                "attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
                "attributeDefNameId": "1a6e253e68484f72b011d38e1d7ed476",
                "attributeDefNameName": "etc:legacy:attribute:legacyAttribute_type-liste",
                "createdOn": "2018/02/15 12:41:24.019",
                "disallowed": "F",
                "enabled": "T",
                "id": "13e54f4a7d1d46728028e4966cd54bf6",
                "lastUpdated": "2018/02/15 12:41:24.019",
                "ownerAttributeAssignId": "c073b0f6fd144c0c867f35b28bdb1808",
                "wsAttributeAssignValues": [
                    {
                        "id": "1292545691004c618e14c9c942711287",
                        "valueSystem": "classique"
                    }
                ]
            }
        ],
        "wsAttributeDefNames": [
            {
                "attributeDefId": "2a8e63a0b7904e09b1ed60a191aa9f23",
                "attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
                "displayExtension": "legacyAttribute_cn-ldap",
                "displayName": "etc:legacy:attribute:legacyAttribute_cn-ldap",
                "extension": "legacyAttribute_cn-ldap",
                "idIndex": "10110",
                "name": "etc:legacy:attribute:legacyAttribute_cn-ldap",
                "uuid": "a6a9dd385e004dbaa9003e1caa8eb385"
            },
            {
                "attributeDefId": "2a8e63a0b7904e09b1ed60a191aa9f23",
                "attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
                "displayExtension": "legacyAttribute_nom-liste",
                "displayName": "etc:legacy:attribute:legacyAttribute_nom-liste",
                "extension": "legacyAttribute_nom-liste",
                "idIndex": "10113",
                "name": "etc:legacy:attribute:legacyAttribute_nom-liste",
                "uuid": "748eaf7646f44615a895ae88173d37b1"
            },
            {
                "attributeDefId": "2a8e63a0b7904e09b1ed60a191aa9f23",
                "attributeDefName": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
                "displayExtension": "legacyAttribute_type-liste",
                "displayName": "etc:legacy:attribute:legacyAttribute_type-liste",
                "extension": "legacyAttribute_type-liste",
                "idIndex": "10112",
                "name": "etc:legacy:attribute:legacyAttribute_type-liste",
                "uuid": "1a6e253e68484f72b011d38e1d7ed476"
            },
            {
                "attributeDefId": "31b1437c0db84a62ba746a91d5e72589",
                "attributeDefName": "etc:legacy:attribute:legacyGroupTypeDef_GroupeUdl",
                "displayExtension": "legacyGroupType_GroupeUdl",
                "displayName": "etc:legacy:attribute:legacyGroupType_GroupeUdl",
                "extension": "legacyGroupType_GroupeUdl",
                "idIndex": "10109",
                "name": "etc:legacy:attribute:legacyGroupType_GroupeUdl",
                "uuid": "f8c151b5a4b148d59c2b27fd2108f060"
            }
        ],
        "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": "10023",
                "multiAssignable": "F",
                "multiValued": "F",
                "name": "etc:legacy:attribute:legacyAttributeDef_GroupeUdl",
                "uuid": "2a8e63a0b7904e09b1ed60a191aa9f23",
                "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": "10022",
                "multiAssignable": "F",
                "multiValued": "F",
                "name": "etc:legacy:attribute:legacyGroupTypeDef_GroupeUdl",
                "uuid": "31b1437c0db84a62ba746a91d5e72589",
                "valueType": "marker"
            }
        ],
        "wsGroups": [
            {
                "description": "Membres du service Budget de la DAF",
                "displayExtension": "daf-budget",
                "displayName": "Groupes Université de Lille:Groupes Activités:Listes:DAF:daf-budget",
                "extension": "daf-budget",
                "idIndex": "12789",
                "name": "UDL:ACT:LISTE:DAF:daf-budget",
                "typeOfGroup": "group",
                "uuid": "d23ba637504f47699f3265e28f9c262f"
            }
        ],
        "wsMemberships": [
        ],
        "wsStems": [
        ],
        "wsSubjects": [
        ]
    }
}

 

 

great! i can script a script perl in command line which calls the webservice grouper in rest protocol in order to get the value of one attribute in the parameter of the script command line...

i need the uuid of the group, i can get this from the webservice findgroups.

 

and next can i set a value of one parameter? you think?

 

Thanks!

 


Université de Lille

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 15/04/2018 à 14:21, Black, Carey M. a écrit :

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