<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Permissions when STP runs on Stored Process Server in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436700#M12252</link>
    <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as I know sassrv is OS user (not SAS user), however I make constraints not at OS level, but at SAS Metadata Level. So, it is interesting under what SAS user (registered in Management Console) STP is executed.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2018 13:59:59 GMT</pubDate>
    <dc:creator>DmitryErshov</dc:creator>
    <dc:date>2018-02-13T13:59:59Z</dc:date>
    <item>
      <title>Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436665#M12244</link>
      <description>&lt;P&gt;I created test STP:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;
  select * from MYLIB.sometable;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and chose option 'Stored process server only' on Execution tab. I have library MYLIB (preassigned by native engine) and I made the following Authorization constraints for it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS General Servers - ReadMetadata - Deny&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS System Services - ReadMetadata - Deny&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;SAS Trusted User - ReadMetadata - Deny&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;myuser - ReadMetadata - Deny&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But when I launch the STP from Stored Process Web Application (I logged as myuser) then it executed without errors. STP sees MYLIB.sometable and can select rows from it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could somebody explain me why?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 12:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436665#M12244</guid>
      <dc:creator>DmitryErshov</dc:creator>
      <dc:date>2018-02-13T12:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436682#M12248</link>
      <description>&lt;P&gt;Setups vary, but generally STPs run under a a shared account, typically sassrv, not your own account. So if the shared account has the required OS permissions, it should all work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, this is just one of a couple of moving parts in the whole STP operation....&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:10:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436682#M12248</guid>
      <dc:creator>nhvdwalt</dc:creator>
      <dc:date>2018-02-13T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436697#M12251</link>
      <description>&lt;P&gt;So you're applying these permissions to the metadata library, rather than the metadata table or metadata folder?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would try&amp;nbsp;different denials for MYUSER (as I understand it, an explicit denial to MYUSER should work).&amp;nbsp; I don't remember what options there are for library permissions.&amp;nbsp; In addition to ReadMetadata, is there also a ReadMemberMetadata or just Read?&amp;nbsp; It could be that one of those settings effects the ability to read tables from a library.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:50:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436697#M12251</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-02-13T13:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436700#M12252</link>
      <description>&lt;P&gt;Thanks for reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But as I know sassrv is OS user (not SAS user), however I make constraints not at OS level, but at SAS Metadata Level. So, it is interesting under what SAS user (registered in Management Console) STP is executed.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 13:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436700#M12252</guid>
      <dc:creator>DmitryErshov</dc:creator>
      <dc:date>2018-02-13T13:59:59Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436703#M12253</link>
      <description>&lt;P&gt;You're right, since MYLIB is a metadata library, you should be able to manage the permissions in metadata.&amp;nbsp; If you log in to the stored process web app as MYUSER, the stored process runs with that user. I would check the metadata permissions for the library, and turn all of the READ* permissions to deny.&amp;nbsp; If that doesn't work, I would change the permissions for the metadata table for MYUSER, just to make sure that can work, then I would read more about how metadata library permissions work.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436703#M12253</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2018-02-13T14:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436708#M12254</link>
      <description>&lt;P&gt;One easy way to check is via SAS Management Console assuming you have access to it. You can right click on the Stored Process Server and do a validate or Test Connection. If the validation works then the Stored Process server is set up correctly. The Stored Process server runs under a shared account usually the "sassrv" account. If the validation fails then you can look at the logs to see where the problem is.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 14:25:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436708#M12254</guid>
      <dc:creator>Meera_SAS</dc:creator>
      <dc:date>2018-02-13T14:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436734#M12255</link>
      <description>&lt;P&gt;I tried to deny all available permissions for &lt;STRONG&gt;library&lt;/STRONG&gt;. And STP (if it is launched on Stored Process Server) can read data from table. But if I change Stored Process Server to Workspace Server then receive error&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ERROR: Libref MYLIB is not assigned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;as we can expect. But it is still mystery why I don't get an error when STP runs on Stored Process Server.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:06:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436734#M12255</guid>
      <dc:creator>DmitryErshov</dc:creator>
      <dc:date>2018-02-13T15:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436737#M12256</link>
      <description>&lt;P&gt;STP Server are not ended once a STP request is finished.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you might still be using&amp;nbsp;a Stored Process Server that has been started before you actually changed the permissions on your library.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I&amp;nbsp;recommend to end all Stored Process Server processes and try again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also this blog entry&amp;nbsp;&lt;A href="https://communities.sas.com/t5/Administration-and-Deployment/A-custom-task-to-list-and-stop-active-SAS-sessions/m-p/251340" target="_blank"&gt;https://communities.sas.com/t5/Administration-and-Deployment/A-custom-task-to-list-and-stop-active-SAS-sessions/m-p/251340&lt;/A&gt; by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4"&gt;@ChrisHemedinger&lt;/a&gt;&amp;nbsp;about a task for SAS Enterprise Guide to list all SAS server processes.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2018 15:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436737#M12256</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-02-13T15:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Permissions when STP runs on Stored Process Server</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436749#M12257</link>
      <description>You are right! I restarted servers and now STP works as expected.</description>
      <pubDate>Tue, 13 Feb 2018 15:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Permissions-when-STP-runs-on-Stored-Process-Server/m-p/436749#M12257</guid>
      <dc:creator>DmitryErshov</dc:creator>
      <dc:date>2018-02-13T15:30:12Z</dc:date>
    </item>
  </channel>
</rss>

