GrouperShell (gsh) Privilege inheritance on groups finder (PrivilegeGroupInheritanceFinder)

GrouperShell (gsh) Privilege inheritance on groups finder (PrivilegeGroupInheritanceFinder)

 

Use this class to find assigned and effective inherited privileges based on assignment to the user or a group the user is in. The inherited privileges could be assigned on the folder or an ancestor folder.

Sample call to retrieve assigned privileges:

Set<Privilege> assignedPrivileges = new PrivilegeGroupInheritanceFinder() .assignSubject(SubjectTestHelper.SUBJ0) .assignRunAsRoot(true) .assignStemName("stemName") .findAssignedPrivileges();


 

Sample call to retrieve effective privileges:

Set<Privilege> effectivePrivileges = new PrivilegeGroupInheritanceFinder() .assignSubject(SubjectTestHelper.SUBJ0) .assignRunAsRoot(true).assignStemName("stemName").findEffectivePrivileges();