<?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: Extract User ID and User Name from a Workspace Spawned via Enterprise Guide in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132815#M10785</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's an excellent tip Chris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mduextr(libref=work); works fine without the metadata credentials when run in EG. I had just assumed credentials were required because it was in an example on SAS Support. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 May 2013 20:02:05 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2013-05-09T20:02:05Z</dc:date>
    <item>
      <title>Extract User ID and User Name from a Workspace Spawned via Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132810#M10780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need to obtain the user id and if possible the user name and e-mail address of the user who is running a job in Enterprise Guide via a workspace server. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this time, I am considering using proc metaoperate or a call to the macros dictionary table.&amp;nbsp; Do I have anyother options and what is the recommended best practice?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JDM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 19:32:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132810#M10780</guid>
      <dc:creator>JDMTX</dc:creator>
      <dc:date>2013-05-08T19:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: Extract User ID and User Name from a Workspace Spawned via Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132811#M10781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For any SAS EG session you can do this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data ids;&lt;/P&gt;&lt;P&gt;&amp;nbsp; length name $ 16 purpose $ 40;&lt;/P&gt;&lt;P&gt;&amp;nbsp; label name="Value Name" purpose="Purpose";&lt;/P&gt;&lt;P&gt;&amp;nbsp; infile datalines dsd;&lt;/P&gt;&lt;P&gt;&amp;nbsp; input name purpose;&lt;/P&gt;&lt;P&gt;datalines;&lt;/P&gt;&lt;P&gt;SYSUSERID, SAS session host account&lt;/P&gt;&lt;P&gt;_CLIENTUSERID, Windows user ID in SAS EG&lt;/P&gt;&lt;P&gt;_CLIENTUSERNAME, Windows user name in SAS EG&lt;/P&gt;&lt;P&gt;_METAUSER, SAS metadata user ID&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select t1.name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t2.value,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; t1.purpose&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; from work.ids t1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; inner join sashelp.vmacro t2 on (t1.name = t2.name);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also query SAS metadata like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options metaserver=sasmetadata metauser="&lt;A href="mailto:sasadm@saspw"&gt;sasadm@saspw&lt;/A&gt;" metapass="password";&lt;/P&gt;&lt;P&gt;%mduextr(libref=work);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives you all users and their details defined in the SAS metadata - do you want a snapshot of all EG users who are currently connecting to a SAS workspace server, or just all users who are defined in metadata?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 20:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132811#M10781</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-05-08T20:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Extract User ID and User Name from a Workspace Spawned via Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132812#M10782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great idea on the %mduextr macro!!!&amp;nbsp; It kills me to embedded the metapass in open code though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 20:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132812#M10782</guid>
      <dc:creator>JDMTX</dc:creator>
      <dc:date>2013-05-08T20:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Extract User ID and User Name from a Workspace Spawned via Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132813#M10783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could encrypt it then:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc pwencode in='password';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then paste the output from the procedure into your metapass string. This does not stop anyone using the encrypted password in code but would prevent them using it in a user tool like SAS Management Console. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 02:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132813#M10783</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-05-09T02:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extract User ID and User Name from a Workspace Spawned via Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132814#M10784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using SAS Enterprise Guide and querying metadata "as you", you don't need the META* options (including the password).&amp;nbsp; But if you are needing to use a different identity (such as sasadm@saspw), then you do need it.&amp;nbsp; See this article:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://blogs.sas.com/content/sasdummy/2010/11/23/five-strategies-to-eliminate-passwords-from-your-sas-programs/" title="http://blogs.sas.com/content/sasdummy/2010/11/23/five-strategies-to-eliminate-passwords-from-your-sas-programs/"&gt; Five strategies to eliminate passwords from your SAS programs - The SAS Dummy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 12:24:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132814#M10784</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2013-05-09T12:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract User ID and User Name from a Workspace Spawned via Enterprise Guide</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132815#M10785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's an excellent tip Chris!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%mduextr(libref=work); works fine without the metadata credentials when run in EG. I had just assumed credentials were required because it was in an example on SAS Support. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2013 20:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Extract-User-ID-and-User-Name-from-a-Workspace-Spawned-via/m-p/132815#M10785</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2013-05-09T20:02:05Z</dc:date>
    </item>
  </channel>
</rss>

