<?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: Delete users from SAS Management Console in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506804#M1403</link>
    <description>&lt;P&gt;I am not an admin but doing this on adhoc basic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do I need to use the&amp;nbsp;&lt;SPAN&gt;MDUCMP (MASTER=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;, TARGET=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;, CHANGE=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;, EXCEPTIONS=&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;dataset&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;, &amp;lt;EXTERNONLY=0|1&amp;gt;, &amp;lt;AUTHDOMCOMPARE=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;keyid&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;)&amp;nbsp;for update?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/bisecag/63082/HTML/default/viewer.htm#p0z36im6qsfk3ln1advg12dn5lls.htm?&amp;nbsp;" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/bisecag/63082/HTML/default/viewer.htm#p0z36im6qsfk3ln1advg12dn5lls.htm?&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="code"&gt;/* Extract identity information from the metadata (target).*/
%mduextr(libref=meta);

/* Compare AD (master) to metadata (target).&lt;SPAN class="calloutAnchor"&gt;3&lt;/SPAN&gt;*/ 
%mducmp(master=adir, target=meta, change=updates);

/* Validate the change tables.*/
%mduchgv(change=updates, target=meta, temp=work, errorsds=work.mduchgverrors);

/* Load  the  changes into the metadata.&lt;SPAN class="calloutAnchor"&gt;4&lt;/SPAN&gt;*/
%mduchglb(change=updates); &lt;/PRE&gt;</description>
    <pubDate>Tue, 23 Oct 2018 12:35:06 GMT</pubDate>
    <dc:creator>sameer112217</dc:creator>
    <dc:date>2018-10-23T12:35:06Z</dc:date>
    <item>
      <title>Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506764#M1399</link>
      <description>&lt;P&gt;I am aware of the how to delete the users manually from SAS Management Console but can anyone tell me how to delete users from SAS Management Console using script/code in SAS EG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any response would be welcome&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:25:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506764#M1399</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2018-10-23T10:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506768#M1400</link>
      <description>&lt;P&gt;Look at the sample programs for synchronization of users and groups with SAS metadata (see my answer to your previous question).&lt;/P&gt;
&lt;P&gt;Use the "extract part" to get the current metadata, remove the unwanted users, and then run the sync process against the reduced userbase.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or simply do it by synchronizing with your external userbase, if you have such (UNIX passwd/group or some LDAP source).&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 10:32:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506768#M1400</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-23T10:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506804#M1403</link>
      <description>&lt;P&gt;I am not an admin but doing this on adhoc basic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do I need to use the&amp;nbsp;&lt;SPAN&gt;MDUCMP (MASTER=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;, TARGET=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;, CHANGE=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;, EXCEPTIONS=&amp;lt;&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;libref&lt;/SPAN&gt;&lt;SPAN&gt;.&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;dataset&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;, &amp;lt;EXTERNONLY=0|1&amp;gt;, &amp;lt;AUTHDOMCOMPARE=&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;name&lt;/SPAN&gt;&lt;SPAN&gt;|&lt;/SPAN&gt;&lt;SPAN class="emph"&gt;keyid&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;)&amp;nbsp;for update?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/bisecag/63082/HTML/default/viewer.htm#p0z36im6qsfk3ln1advg12dn5lls.htm?&amp;nbsp;" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/bisecag/63082/HTML/default/viewer.htm#p0z36im6qsfk3ln1advg12dn5lls.htm?&amp;nbsp;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE class="code"&gt;/* Extract identity information from the metadata (target).*/
%mduextr(libref=meta);

/* Compare AD (master) to metadata (target).&lt;SPAN class="calloutAnchor"&gt;3&lt;/SPAN&gt;*/ 
%mducmp(master=adir, target=meta, change=updates);

/* Validate the change tables.*/
%mduchgv(change=updates, target=meta, temp=work, errorsds=work.mduchgverrors);

/* Load  the  changes into the metadata.&lt;SPAN class="calloutAnchor"&gt;4&lt;/SPAN&gt;*/
%mduchglb(change=updates); &lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Oct 2018 12:35:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506804#M1403</guid>
      <dc:creator>sameer112217</dc:creator>
      <dc:date>2018-10-23T12:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506810#M1405</link>
      <description>&lt;P&gt;After using %mduextr, copy the resulting library (meta) to a new location, remove the users to delete, and use this as the master in the following steps.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Oct 2018 13:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/506810#M1405</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-10-23T13:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640302#M21731</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11562"&gt;@Kurt_Bremser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry to ask in this thread, i am unable to raise new thread,&lt;/P&gt;&lt;P&gt;i need to do the clean up on SAS SMC for users: userid,name,display name.description options in SAS SMC.&lt;/P&gt;&lt;P&gt;how do i copy&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;the resulting library (meta) to a new location&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Actually i am running below&amp;nbsp;&amp;nbsp;code in SAS EG and iam getting error as&amp;nbsp; "ERROR: Libname META is not assigned."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%mduextr(libref=meta);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;would you please suggest how can i copy to new location and them modify and then&amp;nbsp; update the data directly in SAS SMC please&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 07:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640302#M21731</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2020-04-16T07:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640316#M21733</link>
      <description>&lt;P&gt;What it says: the library is not assigned. You need a library to which the macro writes the data extracted from the metadata.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 08:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640316#M21733</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T08:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640356#M21737</link>
      <description>&lt;P&gt;I want to clean up the userid,displayname,jobid and email fields.&lt;BR /&gt;So i got below code from you on SAS site please.&lt;BR /&gt;So iam trying to understand the code.&lt;BR /&gt;here library&lt;BR /&gt;adir = i am giving myown work path&lt;BR /&gt;updates = i am giving my own work path&lt;BR /&gt;So i run below macro in eg and it got extracted into work library using mduextr .&lt;/P&gt;&lt;P&gt;thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16120"&gt;@Kurt&lt;/a&gt;.Iam ver new to SAS Admin please.sorry to trouble you with simple things,&lt;BR /&gt;even though myimportad.sas is present in include path,&lt;/P&gt;&lt;P&gt;it is telling WARNING: Physical file does not exist.&lt;BR /&gt;Iam sorry for my poor communication.&lt;BR /&gt;Basically iam trying below code to do clean up and given my own directory for adir ,updates library&lt;BR /&gt;and iam not able to get "Extract identity information from AD (".&lt;/P&gt;&lt;P&gt;Request to please point me in right direction please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 10:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640356#M21737</guid>
      <dc:creator>JJP1</dc:creator>
      <dc:date>2020-04-16T10:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640361#M21739</link>
      <description>&lt;P&gt;Given your as yet limited knowledge of SAS coding, I would strongly advise you against any attempts at programmatically changing SAS metadata. I started to use (and adapt) the SAS-supplied importpw program when I was a quite accomplished (so they say) SAS coder and admin (with &amp;gt;10 years of SAS experience), and I tested and used it BEFORE I ever went live with our first metadata-driven SAS setup (9.1.3). The risk of doing something fatal to your SAS installation, from which you can't recover on your own, is simply too big. Get help from a local SAS consultant, and watch what he/she does, and have every step explained to you.&lt;/P&gt;
&lt;P&gt;Specifically, I will not try to assist you here; I don't want to be even remotely responsible for the ensuing disaster.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2020 10:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640361#M21739</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2020-04-16T10:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640463#M21745</link>
      <description>Hi, Thanks for providing solution. I have requirement to delete only metadata details of users through sas code instead of manually doing from SMC. We have pam authentication process not AD.&lt;BR /&gt;&lt;BR /&gt;Didn't get how will synchronization code will work for single user deletion and need your support here so that I can use this code for single user deletion or multiple from metadata only.</description>
      <pubDate>Thu, 16 Apr 2020 14:44:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/640463#M21745</guid>
      <dc:creator>sas_royal</dc:creator>
      <dc:date>2020-04-16T14:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/781871#M31840</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am actually trying the option which you have shared last year to delete the user accounts through the SAS script using defined macros.&lt;/P&gt;&lt;P&gt;1. I have extracted the metadata (library say ABC) and copied the resultant metadata library to another library (library say XYZ)&lt;/P&gt;&lt;P&gt;2. I have tried deleting the user in Person table in library XYZ first and sync back by taking XYZ as master. But after running the macro %mducmp, I do not see any updates in change library person tables&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you pls advise, is this correct approach to remove users using script ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 06:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/781871#M31840</guid>
      <dc:creator>kodurukiran</dc:creator>
      <dc:date>2021-11-23T06:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Delete users from SAS Management Console</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/781877#M31843</link>
      <description>&lt;P&gt;Study the log, there might be a clue why the deletion did not take place.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Nov 2021 07:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Delete-users-from-SAS-Management-Console/m-p/781877#M31843</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-11-23T07:33:10Z</dc:date>
    </item>
  </channel>
</rss>

