Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Re: Unique group names across folders

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Re: Unique group names across folders


Chronological Thread 
  • From: Jared Hoffman <>
  • To: Shilen Patel <>
  • Cc: "Hyzer, Chris" <>, Gouper Users <>
  • Subject: Re: [grouper-users] Re: Unique group names across folders
  • Date: Thu, 28 Jul 2016 16:28:59 -0400

Worked (patching and bug fix). Thank you.

Jared

On Thu, Jul 28, 2016 at 3:39 PM, Shilen Patel
<>
wrote:
> Yes, the API is part of the UI. When you patch the UI, it includes the
> API patches as well. But let us know if you run into any problems
>
> Thanks!
>
> - Shilen
>
> On 7/28/16, 3:01 PM, "Jared Hoffman"
> <>
> wrote:
>
>>Thanks Shilen. The bug lists the API but does this also apply to the UI?
>>
>>
>>Jared
>>
>>On Mon, Jul 25, 2016 at 7:37 PM, Shilen Patel
>><>
>> wrote:
>>> This is fixed in a patch now.
>>>
>>> grouper_v2_3_0_api_patch_18
>>>
>>>
>>>https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.internet2.edu_j
>>>ira_browse_GRP-2D1352&d=CwIFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4
>>>adc&r=sWqutME58phurE0oO57Icg&m=xBbvwLUZVfviLj7uKBh8JhcKq38ZlA-sI30ayIGn9O
>>>c&s=gRQXxOkWOrocpQ05t5ljYVHtlZeNAxMvmaAenCqo4B0&e=
>>>
>>> Thanks!
>>>
>>> - Shilen
>>>
>>> On 7/25/16, 1:15 PM, "Jared Hoffman"
>>> <>
>>> wrote:
>>>
>>>>Chris,
>>>>
>>>>The GroupUniqueExtensionHook is working well for preventing duplicate
>>>>groups. Ritefully it doesn't prevent duplicate folder names, at least
>>>>for me.
>>>>
>>>>The one problem with it though is that it prevents moving a group to
>>>>an new folder. I assume that is because it does a copy/delete. I'm
>>>>working around it by disabling the hook and restarting grouper, but I
>>>>thought I'd mention this in case there's a better way.
>>>>
>>>>
>>>>Thanks,
>>>>
>>>>Jared
>>>>
>>>>On Sat, May 21, 2016 at 9:02 AM, Hyzer, Chris
>>>><>
>>>>wrote:
>>>>> This one can do that, though it seems like as new subjects are added
>>>>>you
>>>>> might get conflicts down the road. You mean group extension right?
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>> Chris
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> * <pre>
>>>>>
>>>>> * built in hook to grouper, which is turned on when it is configured
>>>>>in
>>>>>the
>>>>> grouper.properties.
>>>>>
>>>>> *
>>>>>
>>>>> * extensions in groups will be unique, and optionally you can resolve
>>>>>any
>>>>> subject to make
>>>>>
>>>>> * sure the extension is not a netid or whatever
>>>>>
>>>>> *
>>>>>
>>>>> * set that with grouper.properties:
>>>>>
>>>>> *
>>>>>
>>>>> * hooks.group.class =
>>>>>
>>>>>edu.internet2.middleware.grouper.hooks.examples.GroupUniqueExtensionHoo
>>>>>k
>>>>>
>>>>> *
>>>>>
>>>>> * groupUniqueExtensionHook.resolveSubjectByIdOrIdentifier = true
>>>>>
>>>>> *
>>>>>
>>>>> * </pre>
>>>>>
>>>>>
>>>>>
>>>>> From:
>>>>>
>>>>> [mailto:]
>>>>> On Behalf Of Jared
>>>>>Hoffman
>>>>> Sent: Friday, May 20, 2016 7:07 PM
>>>>> To: Shilen Patel
>>>>> <>
>>>>> Cc: Gouper Users
>>>>> <>
>>>>> Subject: [grouper-users] Re: Unique group names across folders
>>>>>
>>>>>
>>>>>
>>>>> Related question.
>>>>>
>>>>>
>>>>>
>>>>> Is there a hook or other setting to prevent someone from making a
>>>>>group
>>>>>name
>>>>> that matches a subject user name?
>>>>>
>>>>>
>>>>>
>>>>> On Friday, May 20, 2016, Shilen Patel
>>>>> <>
>>>>> wrote:
>>>>>
>>>>> Awesome!
>>>>>
>>>>>
>>>>>
>>>>>>> I had tried the link below and it didn't work. I wonder if this is
>>>>>>> related to PSP only.
>>>>>
>>>>>>>
>>>>>>>
>>>>>>>https://urldefense.proofpoint.com/v2/url?u=https-3A__spaces.internet2
>>>>>>>.e
>>>>>>>du_display_Grouper_Unique-2Bobject-2Bnames-2Bin-2BGrouper&d=CwIFaQ&c=
>>>>>>>im
>>>>>>>BPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=sWqutME58phurE0oO57Icg&m=
>>>>>>>J2
>>>>>>>YWTfkrcZEzdLl3kz1rPU70wUUNOhd4KU_S3wCPfic&s=6ZwkE9sM9XPz9EpAOsw8zgabt
>>>>>>>y_
>>>>>>>k8fY6jJDlD6uWBJA&e=
>>>>>
>>>>>
>>>>>
>>>>> I believe this checks against the full name. e.g. If you have a group
>>>>>named
>>>>> etc:test, then you can't have a folder named etc:test.
>>>>>
>>>>>
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>>
>>>>> - Shilen
>>>>>
>>>>>
>>>>>
>>>>> From: Jared Hoffman
>>>>> <>
>>>>> Date: Friday, May 20, 2016 at 1:52 PM
>>>>> To: Shilen Patel
>>>>> <>
>>>>> Cc: Gouper Users
>>>>> <>
>>>>> Subject: Re: [grouper-users] Unique group names across folders
>>>>>
>>>>>
>>>>>
>>>>> Thanks! That is working. I wasn't sure which grouper.properties to put
>>>>>it in
>>>>> so I added to all 3 in the grouper directory thinking that should work
>>>>>for
>>>>> api, ui and ws.
>>>>>
>>>>>
>>>>>
>>>>> grouper.ui-2.3.0\dist\grouper\WEB-INF\classes
>>>>>
>>>>> grouper.ws-2.3.0\grouper-ws\build\dist\grouper-ws\WEB-INF\classes
>>>>>
>>>>> grouper.apiBinary-2.3.0\conf
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I also noticed that it is case insensitive. Test1 can't be created
>>>>>when
>>>>> test1 exists. That is exactly what I need, thanks!
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> I had tried the link below and it didn't work. I wonder if this is
>>>>>related
>>>>> to PSP only.
>>>>>
>>>>>
>>>>>https://urldefense.proofpoint.com/v2/url?u=https-3A__spaces.internet2.e
>>>>>du
>>>>>_display_Grouper_Unique-2Bobject-2Bnames-2Bin-2BGrouper&d=CwIFaQ&c=imBP
>>>>>Vz
>>>>>F25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=sWqutME58phurE0oO57Icg&m=J2YWTf
>>>>>kr
>>>>>cZEzdLl3kz1rPU70wUUNOhd4KU_S3wCPfic&s=6ZwkE9sM9XPz9EpAOsw8zgabty_k8fY6j
>>>>>JD
>>>>>lD6uWBJA&e=
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Jared
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Fri, May 20, 2016 at 8:44 AM, Shilen Patel
>>>>> <>
>>>>> wrote:
>>>>>
>>>>> There's a built in hook for that. In grouper.properties, set:
>>>>>
>>>>>
>>>>>
>>>>> hooks.group.class =
>>>>>
>>>>>edu.internet2.middleware.grouper.hooks.examples.GroupUniqueExtensionHoo
>>>>>k
>>>>>
>>>>>
>>>>>
>>>>> Is that what you're looking for?
>>>>>
>>>>>
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>>
>>>>> - Shilen
>>>>>
>>>>>
>>>>>
>>>>> From: Jared Hoffman
>>>>> <>
>>>>> Date: Thursday, May 19, 2016 at 5:51 PM
>>>>> To: Gouper Users
>>>>> <>
>>>>> Subject: [grouper-users] Unique group names across folders
>>>>>
>>>>>
>>>>>
>>>>> Can grouper be set to ensure uniqueness across all group names, not
>>>>>just
>>>>> ones in the same folder?
>>>>>
>>>>>
>>>>>
>>>>> I searched the forum archives and I found mentions of it in older
>>>>>versions
>>>>> but they seemed to focus on psp provisioning not uniqueness in
>>>>>grouper.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> Jared
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Jared Hoffman € Associate Director for Enterprise Infrastructure
>>>>>
>>>>> Kenyon College LBIS €
>>>>>
>>>>> € 740.427.5948
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Jared Hoffman € Associate Director for Enterprise Infrastructure
>>>>>
>>>>> Kenyon College LBIS €
>>>>>
>>>>> € 740.427.5948
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Jared Hoffman € Associate Director for Enterprise Infrastructure
>>>>>
>>>>> Kenyon College LBIS €
>>>>>
>>>>> € 740.427.5948
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>>--
>>>>Jared Hoffman € Associate Director for Enterprise Infrastructure
>>>>Kenyon College LBIS €
>>>>
>>>> € 740.427.5948
>>>
>>
>>
>>
>>--
>>Jared Hoffman • Associate Director for Enterprise Infrastructure
>>Kenyon College LBIS •
>>
>> • 740.427.5948
>



--
Jared Hoffman • Associate Director for Enterprise Infrastructure
Kenyon College LBIS •

• 740.427.5948



Archive powered by MHonArc 2.6.19.

Top of Page