grouper-users - RE: [grouper-users] web service user READ only, ALL groups
Subject: Grouper Users - Open Discussion List
List archive
- From: "Black, Carey M." <>
- To: "Hyzer, Chris" <>
- Cc: "" <>, "O'Dowd, Josh" <>, "Robinson, Justin S" <>
- Subject: RE: [grouper-users] web service user READ only, ALL groups
- Date: Fri, 27 Jul 2018 11:34:08 +0000
- Accept-language: en-US
- Authentication-results: spf=pass (sender IP is 128.146.163.17) smtp.mailfrom=osu.edu; internet2.edu; dkim=pass (signature was verified) header.d=osu.edu;internet2.edu; dmarc=pass action=none header.from=osu.edu;
- Authentication-results-original: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:PMhOXRY8wWwqxCXVqBtJ3AL/LSx+4OfEezUN459isYplN5qZrsyzbnLW6fgltlLVR4KTs6sC17KI9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa8bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhzsGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7WYNEUSndbXstJVyJPHJ6yb5cBAeQCM+ZXrYj9qEcBoxSxHgSsGPjgxiNUinPqwaE30eIsGhzG0gw6GNIOtWzZoNvoOacWS++60KrIwS3eZP5Iwzj98pbHcxA8qv+LR758f9faxE40GAPBlFqftY/lMymI2ugTvWWW9O1gVfmyi2I9tQ5+vyWvy94qh4LUhYwV0kjJ+ThlzIs6P9G1R0x2bcSqHZdOrS2WKpd6T8M6T212tys20KMKtYK4cSQQ1pgr2RDSZ+aaf4WK4R/vTOiRLil7iX55fb+yghK//Eeix+HhU8S51EtGoTRGn9TJtH0ByQDf58qCR/dj/0quxSiD2gbO4e9eO080j7DUK5s5z74wiJUTtUPDEzfulkjqi6Gaalgo9vG15er/f7nqv5icOJRqhQ3kNaQuh9C/Dv8/MggTWWiU5P6w1KX5/U3+XLVFkOE5krXYsJDdI8QXvKm5AxJJ0oYn7Ba/CDSm3M4EknkAKVJJYBOHj473NFHSOP30EOuzjlu2nDpkxf3KJLPsDovXInTejLvsfa5x60tGxwoyydBf6YhUCrYEIP/rQUDxsMbXAQM6MwCu3urrFttw25gZWWKUH6+VKr3dvkKV5u43OemDeJcVuCrhK/gi//PugmU5mVgAfamxw5QXcmm0Hul9I0qHe3rsmcwMEWMLvgolUOzqk0OOXSRSZ3a0Q6Iz+Cs7CIS4AoffWIyhmqKO0zqmHs4eWmcTQHCdA3ryM82vW+0Nc2jadspqki0WWKKJSpQqkwy2uQn8jbdrM7yH1DcfsMep/tx87O6X3To77zFlR+HbmSnZRWV9lWBOHmVt9KdkvApwxkrVgvswuOBRCdEGv6ABaQw9L5OJirUiU4qoCAvcYteETkqnSdy6ADY3C8g82MIKf10kSozwlQjNijKjGKRd16eGApA56Or95zDwPI4kkSaAjfV/yQB4GY0WaizD5OZk8hTLQYvAkkGXjaGvIKMHwWjA+HrQhWuIoExCVgNsC+PIUW1MLkfVrNGs/krZVPfuErUoNAJd1NSPYrRDcZX3gE9HSvbuNJW7ASqxlm68CAzOyuaLd5esdmkAjyTbFEUelQ0PpzCLORVtTiukqnjVWSRnDkmnakjw8O54/XW8SEJ8zwyDY0B7kbSv/RtAgueBDf4fw+EJ
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Chris,
What if that requirement was desired ONLY in the Web Services interface?....
But I also guess it might also depend on the Authentication source(s) used
for the UI vs WS too.....
I tend to think of "non-human" accounts using WebServices (WS) and
humans using the UI.
Could an installation use two tomcat instances. ( one for the UI and a
separate one for WS )
( Which you really should do anyways. )
Then the UI could not use that setting.
And the WebServices instanced could.
That way WebServices users could "enjoy" that setting only via the WS calls
and not exposing it to "UI users"?
Just a thought...
--
Carey Matthew
-----Original Message-----
From:
<>
On Behalf Of Hyzer, Chris
Sent: Friday, July 27, 2018 2:27 AM
To: O'Dowd, Josh
<>;
Robinson, Justin S
<>
Cc:
Subject: RE: [grouper-users] web service user READ only, ALL groups
There is a way to do a global READ or VIEW or whatever priv without the
overhead of the inherited privs copying to every object:
(from grouper.base.properties)
# A readonly wheel group allows you to enable non-GrouperSystem subjects to
act
# like a root user when reading the registry.
groups.wheel.readonly.use = false
# Set to the name of the group you want to treat as the readonly wheel group.
# The members of this group will be treated as root-like users when reading
objects.
groups.wheel.readonly.group =
$$grouper.rootStemForBuiltinObjects$$:sysadminReadersGroup
-----Original Message-----
From:
[mailto:]
On Behalf Of O'Dowd, Josh
Sent: Thursday, July 26, 2018 1:01 PM
To: Robinson, Justin S
<>
Cc:
Subject: Re: [grouper-users] web service user READ only, ALL groups
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
- [grouper-users] web service user READ only, ALL groups, O'Dowd, Josh, 07/26/2018
- Re: [grouper-users] web service user READ only, ALL groups, Robinson, Justin S, 07/26/2018
- Re: [grouper-users] web service user READ only, ALL groups, O'Dowd, Josh, 07/26/2018
- RE: [grouper-users] web service user READ only, ALL groups, Hyzer, Chris, 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, Black, Carey M., 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, Redman, Chad, 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, O'Dowd, Josh, 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, O'Dowd, Josh, 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, Redman, Chad, 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, Hyzer, Chris, 07/30/2018
- RE: [grouper-users] web service user READ only, ALL groups, Redman, Chad, 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, Black, Carey M., 07/27/2018
- RE: [grouper-users] web service user READ only, ALL groups, Hyzer, Chris, 07/27/2018
- Re: [grouper-users] web service user READ only, ALL groups, O'Dowd, Josh, 07/26/2018
- Re: [grouper-users] web service user READ only, ALL groups, Robinson, Justin S, 07/26/2018
Archive powered by MHonArc 2.6.19.