Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] web service user READ only, ALL groups

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] web service user READ only, ALL groups


Chronological Thread 
  • From: "O'Dowd, Josh" <>
  • To: "Robinson, Justin S" <>
  • Cc: "" <>
  • Subject: Re: [grouper-users] web service user READ only, ALL groups
  • Date: Thu, 26 Jul 2018 17:00:42 +0000
  • Accept-language: en-US
  • Ironport-phdr: 9a23:kK4tixGIJL7r4ouBX7Mv5p1GYnF86YWxBRYc798ds5kLTJ7zocqwAkXT6L1XgUPTWs2DsrQY07SQ6/iocFdDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZrKeTpAI7SiNm82/yv95HJbAhEmDuwbaluIBmqsA7cqtQYjYx+J6gr1xDHuGFIe+NYxWNpIVKcgRPx7dqu8ZBg7ipdpesv+9ZPXqvmcas4S6dYDCk9PGAu+MLrrxjDQhCR6XYaT24bjwBHAwnB7BH9Q5fxri73vfdz1SWGIcH7S60/VC+85Kl3VhDnlCYHNyY48G7JjMxwkLlbqw+lqxBm3oLYfJ2ZOP94c6jAf90VWHBBU95RWSJfH428c4UBAekPPelaronyu1QAohSlCAmwH+zvzyNEimPq0aA41ekqDAHI3BYnH9ILqHnYosz7OKQcX+CywqjH0C3PZO5S1zf684jIch4tquyLULx0dsrR0kkvGxncgFmTp4LlOD2U2fkWvmie9OpgUviji3MiqwFtuDSg2NojipTQi48T11vK9j15zZ4oKdC4VEJ3e8OoHZVNuy2AKYd6XM0vT3t1tCs70rEKpIK3cDIUxJkoxhPTcfKKfoaS7h/gVuudOTl4i2xmdb6jghu/9FWsxfDzW8S71VtFsCVIn9jCu30I1BHe7seKR/R480ev2TuAyw7e5+dZKk4uj6XbMYQuwrsom5oTr0vDGij2lV3rjK+TcUUk/PSo5/j6brn8u5+cMpN0hhvgPaszh8yzGeU4Mg4QUGiH4emwyb3u8VHjTLlXgPA6j7PVvI7EKckVvKK1Hg5Y3p4m6xmlDjem1NoYnWMALFJAYB+Ji4/pO0rOIPziFPmzgFqikDBlxv/bJbDhB47NLn/ZnLf8eLZ991RQxxQuwtBC/55UEK0OIOrvWk/ts9zVFhA5Mxazw+b6ENVyyJkeVXuSAq+CLqzSq0SI6/krI+mNf48VpC39J+Y/6/7vi385hUESfbOv3ZQJdHC0AO5qLFuEbnrx0Z89FjJAhA00Terxj1vGGRxOfGqzWeoHrHlvCpj5V6/CW8agjKHXjwmhGZgDLEcJJleTHTOgVYKfW71EPACVOc8ntXMoUqetY4o60lezsRO8xrZ6eLmHshYEvI7ugYAmr9bYkgs/oHktV5yQ

Thanks for that Justin. I will give that a shot once I understand what its
doing, exactly. But your example gives me points of reference to learn more
about. Very kind.

Thank You!
-Josh

On Jul 26, 2018, at 10:55 AM, Robinson, Justin S
<<mailto:>>
wrote:

Hi Josh,

There are probably other (possibly better) ways to achieve this - but one way
is to use the RuleApi and GSH to inherit privileges. The example below should
do it:

grouperSession = GrouperSession.startRootSession();
someStem = StemFinder.findByName(grouperSession, "stem:path");
webServiceClientUsers = GroupFinder.findByName(grouperSession,
"etc:webServiceClientUser");
RuleApi.inheritGroupPrivileges(SubjectFinder.findRootSubject(), someStem,
Stem.Scope.SUB, webServiceClientUsers.toSubject(),
Privilege.getInstances("read"));
RuleApi.runRulesForOwner(someStem);

Thanks,

Justin Robinson
Indiana University

On Jul 26, 2018, at 12:42 PM, O'Dowd, Josh
<<'>>
wrote:

Hi,

I am wondering if it is possible to give an etc:webServiceClientUsers group
member READ(not ADMIN) privilege for ALL groups(including any new), instead
of having to add that privilege to each group individually? More of a global
group READ privilege, similar to what the etc:sysadmingroup has with the
ADMIN priv for all groups is what we are looking for.

Any help is much appreciated.

Thanks.
-Josh O’Dowd
University of Montana





Archive powered by MHonArc 2.6.19.

Top of Page