Skip to Content.
Sympa Menu

grouper-users - RE: [grouper-users] stemAdmin vs stem privilege

Subject: Grouper Users - Open Discussion List

List archive

RE: [grouper-users] stemAdmin vs stem privilege


Chronological Thread 
  • From: "Black, Carey M." <>
  • To: Julio Polo <>
  • Cc: Grouper-Users <>
  • Subject: RE: [grouper-users] stemAdmin vs stem privilege
  • Date: Sat, 9 May 2020 03:10:48 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=osu.edu; dmarc=pass action=none header.from=osu.edu; dkim=pass header.d=osu.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=t7uLKHTPbjyrxlEeAPoh2iiwW9Hidiqe295t7fPN9kE=; b=J806GpSerz5pUqPbczhXcsvGvFvmKEPNsRi0pEY4qxggj8d0QFRRFaPD9392X5GZ90DNciJhqbimjOQNmc6/dJoV0HAFEonGJrKbQTjE5YhgkNbh9Owi61JRZusolbVODuEcGQMSI7xxl1/yTxUyuLSAi5+JOoP+9gz9R4hgBuXKkbFooH9X5ywnZL/RrdhW8XcLQjP7sk9zZWpVbVp1qr8YYlSoSG3Vs4DifOyZ2DhHytsIeY5qv3yOYytuQ+BnPrucXiRhDAPpIzcxHgMP/FsY0Us1DlHk60u6BA+M5ZIhvW5iRElfWbrZRKw8fqjQVD9iSBrT7DqboOwE28XSRQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mu7z6M5VPCBhY9SFedohdVjp2KvY8ioMdrGOzG/7JSBsZxuObse9WHwYG0CuFTMi/IJG3uXcZmaNK8O3NTyzjcPGJY+XawgMQ/n8ZWMwXRv4O8cf76zcBUyb8NqLWfFI1eu/Q+Xc+eX3VrPqIr4G0fAhz6TUmsM9NZc0YSquywprIpl4ZQx5zl4Pu+f8LwMqyzSCFel0aEwWn1bZCbmWKH3VeMA7QVikAGLpAuvcZ+n5pymNONIc6y2iifIQOKRhk6vGLZ0XBMWNz4aO/BHNRqOyHPpTItrv7ETrlieogADUDMSuQe9ips//WfxMvCupGniiyT39l15ZEYHgAsXC/w==

Julio,


Thanks for testing that older WS call. That is a bit disappointing to learn that it works that way. Sorry for the wild goose chase.




I think this is the part of the docs that show what you are asking about.
                The answer looks like “yes” to me. ( “STEM” (old name)
à”ADMIN”  (new name) )

 

https://spaces.at.internet2.edu/pages/viewpage.action?pageId=26576345  à Grouper Glossary ( version 13 circa Nov 2011 )

  

Naming Privileges

These privileges determine what a Subject can do with a Naming Stem. They are:

·         CREATE - can create a group(s) named with a naming stem, and

·         STEM - can assign who has CREATE for the naming stem, and can create naming stems subordinate to this one.

Naming privileges are now referred to as Creation privileges and the two types are Create Group (replaces CREATE) and Create Folder (replaces STEM)

 

 

Current version:  https://spaces.at.internet2.edu/display/Grouper/Glossary  à Grouper Glossary ( version 55 circa Dec 2019 )

Naming Privileges

These privileges determine what a Subject can do with a Naming Stem. They are:

·         CREATE - can create groups, attributes, and subfolders in the stem.

·         ADMIN - can create groups, attributes, and subfolders in the stem.  Also can delete the stem or assign any privilege to any entity.

·         STEM_ATTR_READ - can read attributes assigned to the stem.  Note that the subject must also have ATTR_READ privilege on the attributeDef.

·         STEM_ATTR_UPDATE - can assign attributes to the stem.  Note that the subject must also have ATTR_UPDATE privilege on the attributeDef.

Naming privileges are now referred to as Creation privileges.



And both version say “Naming Stem” = Stem is a UI "folder".

 

--

Carey Matthew

 

From: Julio Polo <>
Sent: Friday, May 8, 2020 10:55 PM
To: Black, Carey M. <>
Cc: Grouper-Users <>
Subject: Re: [grouper-users] stemAdmin vs stem privilege

 

Thanks Carey, but that didn't help.  I called it with /grouper-ws/servicesRest/xml/v2_2_002 instead of v2_5_000, and it still acts as if I sent it 'stemAdmin'

 

I noticed the UI also changed the label for this privilege.  When in the Privileges tab for a folder, the 2.2 UI calls that column 'Create folder' while the 2.5 UI calls it 'Admin'

 

I couldn't find any announcement about the stem naming privilege being deprecated by stemAdmin.  If I get official word that this is the case, I'll happily adjust our code for Grouper 2.5

 

-julio

 

-julio

 

On Fri, May 8, 2020 at 4:39 PM Black, Carey M. <> wrote:

Julio,

 

I have no idea if this will work or make anything better….

 

However, I am curious if you change the endpoint that you were calling in the WS call?
   Can you use the “old endpoint” and get the expected “old formatted” result?   ( I think that might still work…..)

Meaning.. if you ask the v2.5 API it will give you a v2.5 answer.
                  If you ask the v2.2 API it should give you a v2.2 answer.

Just a thought, and I have no idea if it would work as I expect it too. ( Shrug. YMMV )

Also it may or may not help.. but I try to hold to this page for “definitions in Grouper terms”:  https://spaces.at.internet2.edu/display/Grouper/Glossary

 

--

Carey Matthew

 

From: <> On Behalf Of Julio Polo
Sent: Friday, May 8, 2020 9:31 PM
To: Grouper-Users <>
Subject: [grouper-users] stemAdmin vs stem privilege

 

We're testing the WS for Grouper 2.5. Has the 'stem' naming privilege been changed to 'stemAdmin' after Grouper 2.2?

 

We noticed an unexpected response from the 2.5 WS.  We would send 'stem' as the naming privilege to assign, but the WS returns 'stemAdmin' as what was actually set. 

 

Shall we stop using 'stem' and use 'stemAdmin' instead?

 

Here are the relevant portions of the HTTP request and response:

 

<WsRestAssignGrouperPrivilegesRequest>
 <replaceAllExisting>F</replaceAllExisting>
 <allowed>T</allowed>
 <wsStemLookup>
  <stemName>tmp:foobar</stemName>
 </wsStemLookup>
 <privilegeType>naming</privilegeType>
 <privilegeNames>
  <string>stem</string>
  <string>create</string>
 </privilegeNames>
 <wsSubjectLookups>
  <WsSubjectLookup>
   <subjectId>1234567890</subjectId>
  </WsSubjectLookup>
 </wsSubjectLookups>
</WsRestAssignGrouperPrivilegesRequest>

 

Here's a pretty-printed version of the XML we got back:

 

          {
            'wsSubject' => {
                           'success' => 'T',
                           'resultCode' => 'SUCCESS',
                           'name' => 'test person',
                           'id' => '1234567890'
                         },
            'privilegeName' => 'stemAdmin',
            'resultMetadata' => {
                                'success' => 'T',
                                'resultCode' => 'SUCCESS_ALLOWED'
                              },
            'privilegeType' => 'naming'
          },
          {
            'wsSubject' => {
                           'success' => 'T',
                           'resultCode' => 'SUCCESS',
                           'name' => 'test person',
                           'id' => '1234567890'
                         },
            'privilegeName' => 'create',
            'resultMetadata' => {
                                'success' => 'T',
                                'resultCode' => 'SUCCESS_ALLOWED'
                              },
            'privilegeType' => 'naming'
          }
        ];

 

Thanks.

 

Julio Polo

University of Hawaii

 

 




Archive powered by MHonArc 2.6.19.

Top of Page