Yep...this seems to work.... In the group.rb model I added...
validates :name, format: { with: /\./, message: "must include '.' character" } validates :path, format: { with: /\./, message: "must include '.' character" } ...and the group name and paths now must have "." in them. Not sure of the convention I'll use, but some kind of validates check should do anything I want. Doug On Monday, July 25, 2016 at 6:17:50 PM UTC-4, douglas.mott...@gmail.com wrote: > > This is a service for a school, so there's potentially a large number of > users and groups. I'd prefer to let this all be self managed. Having a > separate names space for groups would alleviate the issue. Asking is not > practical. > > > I'm not a familiar with ruby...yet rails...but would changing the model > > /opt/gitlab/embedded/service/gitlab-rails/app/models/*group*.rb > > > with some kind of "validates" chuck of code work? > > > Doug > > > On Monday, July 25, 2016 at 5:56:48 PM UTC-4, Drew Blessing wrote: >> >> Hi Doug, >> >> There isn't a way to restrict groups like you're requesting. Have you >> experienced lots of issues with conflicting namespaces? I've not seen a lot >> of times where users were unable to get a namespace because a group had >> already taken it. If it's not happening often you can potentially handle >> each case separately - ask the group to give up their namespace or >> something. >> >> On Thursday, July 21, 2016 at 1:10:22 PM UTC-5, douglas.mott...@gmail.com >> wrote: >>> >>> Is there a way for an admin in gitlab to restrict the name space for >>> groups created? >>> >>> I plan to setup gitlab tied to a CAS authentication provider and have >>> automatic account creations on login. So if the username "john" logs in it >>> will get the namespace "john". Problem is that right now, an previous user >>> could have "stolen" the "john" name space as a group. And therefore >>> "john" wouldn't get "john", but like "john1". I'd prefer not to have that >>> happen. >>> >>> I also still want to allow people to create/mange their own groups, but >>> restrict the group name space in some way so that it can't collide with the >>> automatic users that would be created. >>> >>> >>> For example, I know my users can not have a period in the username, so >>> then force groups to have a period. OR force groupnames to be prepended >>> with a string...like "group-". >>> >>> >>> Does anyone have a suggestion? >>> >>> Thanks, >>> >>> Doug >>> >> -- You received this message because you are subscribed to the Google Groups "GitLab" group. To unsubscribe from this group and stop receiving emails from it, send an email to gitlabhq+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/gitlabhq/94875451-55e8-4dbf-9f8c-611f27ab5853%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.