Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Renaming a group using web services

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Renaming a group using web services


Chronological Thread 
  • From: Shilen Patel <>
  • To: Julio Polo <>, "Hyzer, Chris" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] Renaming a group using web services
  • Date: Mon, 26 Mar 2018 11:45:18 +0000
  • Accept-language: en-US
  • Authentication-results: oit.duke.edu; spf=none
  • Ironport-phdr: 9a23:Wcem8BedEoK1aUCQUQrQN+vZlGMj4u6mDksu8pMizoh2WeGdxcWyYR7h7PlgxGXEQZ/co6odzbaO6Oa4ASQp2tWoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6nK94iQPFRrhKAF7Ovr6GpLIj8Swyuu+54Dfbx9HiTahb75+Ngm6oRnMvcQKnIVuLbo8xAHUqXVSYeRWwm1oJVOXnxni48q74YBu/SdNtf8/7sBMSar1cbg2QrxeFzQmLns65Nb3uhnZTAuA/WUTX2MLmRdVGQfF7RX6XpDssivms+d2xSeXMdHqQb0yRD+v9LlgRgP2hygbNj456GDXhdJ2jKJHuxKquhhzz5fJbI2JKPZye6XQds4YS2VcRMZcTyxPDJ2hYYsTAeQPPuhYoIvzqFsPsRSxChKhC/nzxj9NnHL6wbc33uYnHArb3AIgBdUOsHHModvoNKcSUOS1w7fOzT7edf1Zwyv955bMchs8pvyMRrJwccvVyUYxEQPIlUifqZHmPzyLzOgCrXWU7/d5WO+plmUppQZxoj21ycctjInEno0Vykrc9Slg3oo6OMC0RUxmbdOmCJdQuDuaN4xrQsM6Wm1kpj01yqYctp6lYicG0JUnxxjDa/OZaYiI5AzsVPqPLTtimn1qZa+/iw6q8Ui6ze38Uce00E5NripElNnMqmoB2ADU6siCTPZ240Sv2S6X2gzO6uxIP1o4mKTBJ5I8wbM9koAfvVrMEyPrgEn6ka+bels+9uWm8ejqbLrrqoWSOoNshAHxLKcjltC6DOk9MQUCQ3OU9OC52bDh+UD2XLRHg/grnqXEsZ3WO8EWqbC3DgNIzIou7Qu0AS2839QCh3YHKUpIeBKZgIjtPFHDOPX4Au2+g1SoiTtryP7HMqT8DpjNNHTDl7bhfapn50FB1Qozzs5Q64hKBb4cPfL/Qk7xtNrGAR8lKwG43ubqBMtn2o4QQ26DH6yUPafIvVOW6e8jPvGAZIoPtzb8L/gl6eTujXg8mVIFZqmp3ZoXaHSmEfRgOEiWfGfsgtQfHmsQoAUxUfHqhEWYUTFPf3ayQ7485jYjBYKpF4fDQZ2tgKSf0yehB5FWe3tGBU6WEXfzbIiEX/YMaDmOIs96jDAIT7mhS4k91R6wrg/6zaRoLvbK9iECq53sycV1tKXvkkQQ6Dh1CIyl1GWKBzV2g2cJQBc21b92oE07x1ueh+wwydxJB9FJo7tiUh07LtSUm+lxC8HgVxjpf8yCDku+T9OgRzw9U4Ri7cUJZhNGG9SmgxaL5yO2Drtdw6eLBZg59IrQwnv8Yctx1iCVh+Eak1A6T54XZiWdjall+l2WXtaRng==
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hi,

 

GRP-1717 will be addressing that.  The plan is to add the following:

 

  1. Add an option to not add the alternate name during a rename.  I would probably use a param on the overall groupSave call in a way that’s similar to the params for copying and moving (e.g. renameAssignAlternateName default to true).
  2. Have an option to change or remove the alternateName. I would probably use a param on WsGroupDetail so you can set and get the alternate name for each group.

 

Would this address your need?

 

Thanks!

 

- Shilen

 

From: <> on behalf of Julio Polo <>
Date: Friday, March 23, 2018 at 5:16 PM
To: "Hyzer, Chris" <>
Cc: "" <>
Subject: Re: [grouper-users] Renaming a group using web services

 

I spoke too soon.  There's still a problem after the rename.  No alternate is created, but only the displayExtension changed.   The extension still has the original value.  

I tried omitting <name> as shown below, but it still doesn't change the extension, only the displayExtension:

<WsGroupToSave>

   <wsGroupLookup>
    <groupName> a:b:c:oldName </groupName>
   </wsGroupLookup>

   <wsGroup>
    <extension> newName </extension>
    <displayExtension> newName </displayExtension>
   </wsGroup>

  </WsGroupToSave>

Is there a WS call to delete the alternate name?


-julio

 

On Fri, Mar 23, 2018 at 9:56 AM, Julio Polo <> wrote:

It was creating an alternate name, but since you mentioned changing an extension, I figured it out and modified the way I called WsRestGroupSaveRequest:

 

Before (created alternate; I was expecting the API to figure out that it was the same folder and rename instead of move):

  <WsGroupToSave>

   <wsGroupLookup>
    <groupName> a:b:c:oldName </groupName>
   </wsGroupLookup>

   <wsGroup>
    <name> a:b:c:newName </name>
   </wsGroup>

  </WsGroupToSave>

After (no alternate):

  <WsGroupToSave>

   <wsGroupLookup>
    <groupName> a:b:c:oldName </groupName>
   </wsGroupLookup>

   <wsGroup>
    <name> a:b:c:oldName </name>
    <extension> newName </extension>
    <displayExtension> newName </displayExtension>
   </wsGroup>

  </WsGroupToSave>

 

Thanks Chris!

-julio

 

 

On Wed, Mar 21, 2018 at 5:40 AM, Hyzer, Chris <> wrote:

I think changing an extension is not considered a move.  Does it create an alternate name by default?

 

We should add alternate name in the WS api for 2.4...  I created a jira

 

https://bugs.internet2.edu/jira/browse/GRP-1717

 

Thanks

Chris

 


From: <> on behalf of Julio Polo <>
Sent: Thursday, March 15, 2018 11:06 PM
To:
Subject: [grouper-users] Renaming a group using web services

 

I want to use web services to rename a group without creating the alternate group name. To do that, this page says that I have to pass the 9th parameter moveAssignAlternateName as false:

https://spaces.internet2.edu/display/Grouper/Group+Save

Since I'm using XML, it sounds like I have to provide the preceding 8 parameters before I can provide the 9th parameter, but many of those 8 parameters only make sense if I'm copying or moving.  Is renaming a group treated as moving a group?

If I'm renaming a group to a different name without changing folders (e.g. rename a:b:c:oldName to a:b:c:newName), what values should I provide for those first 8 parameters if I want to minimize unnecessary changes?

Alternately, is there a WS call to delete the alternate group name after renaming a group?

 

-julio

Julio Polo
Information Technology Services
University of Hawaii

 

 




Archive powered by MHonArc 2.6.19.

Top of Page