grouper-users - RE: [grouper-users] web service user READ only, ALL groups
Subject: Grouper Users - Open Discussion List
List archive
- From: "Redman, Chad" <>
- To: "O'Dowd, Josh" <>, "Black, Carey M." <>, "Hyzer, Chris" <>
- Cc: "" <>, "Robinson, Justin S" <>
- Subject: RE: [grouper-users] web service user READ only, ALL groups
- Date: Fri, 27 Jul 2018 14:09:10 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Ironport-phdr: 9a23:Motn5hG2eClrENZ8Hy5gWJ1GYnF86YWxBRYc798ds5kLTJ76p82/bnLW6fgltlLVR4KTs6sC17KI9fi4EUU7or+5+EgYd5JNUxJXwe43pCcHRPC/NEvgMfTxZDY7FskRHHVs/nW8LFQHUJ2mPw6arXK99yMdFQviPgRpOOv1BpTSj8Oq3Oyu5pHfeQpFiCa8bL9oMBm6sRjau9ULj4dlNqs/0AbCrGFSe+RRy2NoJFaTkAj568yt4pNt8Dletuw4+cJYXqr0Y6o3TbpDDDQ7KG81/9HktQPCTQSU+HQRVHgdnwdSDAjE6BH6WYrxsjf/u+Fg1iSWIdH6QLYpUjm58axlVAHnhzsGNz4h8WHYlMpwjL5AoBm8oxBz2pPYbJ2JOPZ7eK7WYNEUSndbXstJVyJPHJ6yb5cBAeQCM+ZXrYj9qEcBoxSxHgSsGPrvxiNUinPqwaE2zeIsGhzG0gw6GNIOtWzZoNvpOqgMTO+1ybPHzTPbY/hLxzr96JLHfQ0vrfqRWr9/bcrRxlMyGAzdlFWft5HqPzaP2eQLqGWb8uxgWv61h2E5tg5xvyGiy8ExgYfHgYIVz0rL9SR/wIstKty4TUp7bcS/EJtXsSyRKoh4Qts6Tm11pCo3xacKtJG5cSQQxpkqxQTTZv+IfoSQ/x7uVPidLS1miH5/Zb6zmwi+/VK9xuDzVcS4yFhKoTRGn9XQs30A0gLc5tWdRftz+0qs2zeC2gLO5exBP0w4i6nWJpwkz7Erlpccr0XOEynrk0vslqCWbF8r+u2w5uTnfLrmopicOpdshAziNaoihtKzDf0mPwcMQmSX4OO826b98kHjR7VKk+E2nbLesJDHI8QUu7S1AxdP0oYk9xawESup0MgZnXkAKlJJYhWHj5X1O1HKJ/D4CvS/j06wnzdswvDKJrzhApPTIXjfiLrtYKpx5kFGxAc8z91T/ZxZB7MbLP/wVUL9rNnYAQU4MwywzebnEtJ91oYGVG2TAq+WKr7dvkeS5u0xPuaMYZUauDDmJvg44f7hkWU1lkEAcqm0xZcXcmy3Hux6I0WFZnrhmtgBEX0NvgojVOzllkeCXSdOZ3apQa08/Co7BZmiDYfCXYCtnKeB0DmhEp1XYGBGFk6DEW3ud4qaR/cAdjieLdF8nTwZBvCdTNpr8l6CsxD2j/JFKfHUsGVMl5X41J5SqMHUih0a8CdzSdmYzyeAQ3wi2itCbTs/16M76Wd00FqSmY0+ybQMH9ha7PAPC11hHZnH0qp3B82kHkqLXsabRUziCv6mGzAqBJplxtQOclRwAf2jlRuFwjKnBblTmrCWUs8a6KXZijLLKsp4wnCCnIIhhlVsCp9ENWSqsbRy+w3aAabUlU7fmqq3I/dPlBXR/XuOmDLd9HpTVxR9BOCcBShFPBnfsMj560XeTrSnFbUgNE5bxNWfLrdRNIe7lk1IEfHkPtmWI3m8nWu9H16p/vuNd8KrHgdVxyDBEA4BmgEX82yBMF01Bi6tlHjTADlnE3ryZUiq/OVj+zu2
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Your post made me realize that even under the same Tomcat instance, they are
still different containers. So you could add groups.wheel.readonly.use=true
to grouper.properties in the WS deployment but not the UI deployment.
-Chad
-----Original Message-----
From:
[mailto:]
On Behalf Of O'Dowd, Josh
Sent: Friday, July 27, 2018 9:47 AM
To: Black, Carey M.
<>;
Hyzer, Chris
<>
Cc:
;
Robinson, Justin S
<>
Subject: RE: [grouper-users] web service user READ only, ALL groups
Carey,
Our UI and WS both run under a single tomcat instance. We authn using
Shibboleth SP/IdP for UI, and tomcat still authn WS requests so we do have
"WS system user" accounts in our tomcat-users.xml. So if I use Chris's
suggestion, I am really getting what you are suggesting, as well, simply by
placing the WS user(s) into the grouper that I want to give
wheel.readonly.use to, if I am understanding him correctly.
-Josh
_______________________________________
From: Black, Carey M.
[]
Sent: Friday, July 27, 2018 5:34 AM
To: Hyzer, Chris
Cc:
;
O'Dowd, Josh; Robinson, Justin S
Subject: RE: [grouper-users] web service user READ only, ALL groups
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.