Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] Default Permission Inheritence Behavior?

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] Default Permission Inheritence Behavior?


Chronological Thread 
  • From: "Michael R. Gettes" <>
  • To: Chris Hyzer <>
  • Cc: Andrew Morgan <>, "Waldbieser, Carl" <>, "" <>
  • Subject: Re: [grouper-users] Default Permission Inheritence Behavior?
  • Date: Tue, 3 Feb 2015 23:17:20 +0000
  • Accept-language: en-US

here is a recipe for what we use to establish inherited group access.

grouperSession = GrouperSession.startRootSession();
baseStem = StemFinder.findByName(grouperSession, "Apps:ServiceNow");
adminGroup = GroupFinder.findByName(grouperSession, "Apps:ServiceNow:Admins");
// grant rights on subfolders
RuleApi.inheritFolderPrivileges(SubjectFinder.findRootSubject(), baseStem,
Stem.Scope.SUB, adminGroup.toSubject(), Privilege.getInstances("stem,
create"));
// grant rights on subgroups
RuleApi.inheritGroupPrivileges(SubjectFinder.findRootSubject(), baseStem,
Stem.Scope.SUB, adminGroup.toSubject(), Privilege.getInstances("admin"));

of course, adjust the stem names to your liking. The Admins group may or may
not be updated by its members depending upon the rules for that part of the
grouper tree. The above allows the Admins group to do whatever they like
with folders and groups within Apps:ServiceNow (as an example).

i hope this helps.

/mrg

> On Feb 3, 2015, at 6:11 PM, Chris Hyzer
> <>
> wrote:
>
> Right, you need a rule to make that happen, same as previous release of
> Grouper. New ui is no different in that regard.
>
> Thanks,
> Chris
>
> -----Original Message-----
> From:
>
>
> [mailto:]
> On Behalf Of Andrew Morgan
> Sent: Tuesday, February 03, 2015 5:07 PM
> To: Waldbieser, Carl
> Cc:
>
> Subject: Re: [grouper-users] Default Permission Inheritence Behavior?
>
> On Tue, 3 Feb 2015, Waldbieser, Carl wrote:
>
>>
>> I've just started experimenting with the permission behavior in the New UI.
>> I thought I had read somewhere that if I create a stem and assign
>> permissions, any sub-folders I create in that stem would inherit those
>> permissions.
>>
>> However, if I set up a structure like this:
>>
>> + test
>> + stem1
>> - admins (group)
>> + stem2
>>
>> I assigned "admins" CREATE_FOLDER and CREATE_GROUP permissions on "stem1".
>> Then, as a member of admins, I create "stem2". When I view the
>> permissions on "stem2", I see that only the account that created it has
>> permissions on that folder, *not* any other members of "admins".
>>
>> Am I missing something? Do sub-stems not inherit permissions?
>
> Carl,
>
> See the thread with subject "rights inheritance ..." on this list just last
> week. :)
>
> Andy




Archive powered by MHonArc 2.6.16.

Top of Page