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: "Hyzer, Chris" <>
  • Cc: Shilen Patel <>, Gouper Users <>
  • Subject: Re: [grouper-users] Re: Unique group names across folders
  • Date: Mon, 25 Jul 2016 13:15:28 -0400

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.GroupUniqueExtensionHook
>
> *
>
> * 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://spaces.internet2.edu/display/Grouper/Unique+object+names+in+Grouper
>
>
>
> 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://spaces.internet2.edu/display/Grouper/Unique+object+names+in+Grouper
>
>
>
>
>
>
> 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.GroupUniqueExtensionHook
>
>
>
> 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



Archive powered by MHonArc 2.6.19.

Top of Page