<?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: How to add Authentication domain and AD ID through metadata code in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-add-Authentication-domain-and-AD-ID-through-metadata-code/m-p/614798#M17951</link>
    <description>&lt;P&gt;Hey Ronan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the revert, i am already trying the same with canonical tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in that as well i am facing one issue in which i am unable to add new users to existing group by using the attached code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: The method is not directed at a repository. (The Reposid parameter is blank.)&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Specify connection options. Use an unrestricted user ID. Port 8561 */
options metaserver=XXXXXX
metaport=8561
metauser="sas"
metapass="XXXXXXX"
metarepository="Foundation";
  
/* Initialize the macro variables that create canonical tables. */
%mduimpc();

/* Create the person table. */
data &amp;amp;persontbla;
     %definepersoncols;
     infile datalines delimiter=',' missover;
         input keyid name description title;  
    datalines;            
P00111,ichelle Harrell,Mgr of Operations,Sr. Mgr
P00121,red Granite,NE Region Acct. Rep.,Account Rep II
P00131,rian Davis,Accounting System Developer,Senior Programmer
;                       


/* Create the grpmems table. */
data &amp;amp;idgrpmemstbla;
     %defineidgrpmemscols;
     infile datalines delimiter=',' missover;
         input grpkeyid memkeyid;
    datalines;            
A5A86HMO.A500001O,P00111
A5A86HMO.A500001O,P00131
;
 

/* Create the authdomain table. */
data &amp;amp;authdomtbla;
     %defineauthdomcols;
     infile datalines delimiter=',' missover;
         input keyid authDomName;
    datalines;            
A5A86HMO.AR000001,DefaultAuth
; 

/* Create the logins table. */
data &amp;amp;logintbla;
     %definelogincols;
     infile datalines delimiter=',' missover;
         input keyid userid password authdomkeyid;  
    datalines;            
P00111,IDBIBANK.AD\114901, ,A5A86HMO.AR000001
P00121,IDBIBANK.AD\114902, ,A5A86HMO.AR000001
P00131,IDBIBANK.AD\114903, ,A5A86HMO.AR000001
; 

/* Load the information from the work library into the metadata server. */


%mduimplb();

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Kaushal Solanki&lt;/P&gt;</description>
    <pubDate>Thu, 02 Jan 2020 16:58:14 GMT</pubDate>
    <dc:creator>kaushalsolanki</dc:creator>
    <dc:date>2020-01-02T16:58:14Z</dc:date>
    <item>
      <title>How to add Authentication domain and AD ID through metadata code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-add-Authentication-domain-and-AD-ID-through-metadata-code/m-p/613887#M17914</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am creating users through metadata_newobj command line in SAS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wanted to know how i can add authentication domain and user id through the same command line.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Kaushal Solanki&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 12:00:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-add-Authentication-domain-and-AD-ID-through-metadata-code/m-p/613887#M17914</guid>
      <dc:creator>kaushalsolanki</dc:creator>
      <dc:date>2019-12-26T12:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Authentication domain and AD ID through metadata code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-add-Authentication-domain-and-AD-ID-through-metadata-code/m-p/614738#M17948</link>
      <description>&lt;P&gt;Well, this requires some very good understanding of the Open Metadata Interface (OMI) hierarchical model beforehand... An easier way might be to reuse the so-called MDU* User Import macros : populate some SAS canonical tables then the macros will synchronise the change into metadata :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://documentation.sas.com/?cdcId=bicdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=bisecag&amp;amp;docsetTarget=p02wesbzrochnbn1na7fqdy2gdvo.htm&amp;amp;locale=en"&gt;http://documentation.sas.com/?cdcId=bicdc&amp;amp;cdcVersion=9.4&amp;amp;docsetId=bisecag&amp;amp;docsetTarget=p02wesbzrochnbn1na7fqdy2gdvo.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/40/628.html" target="_blank"&gt;http://support.sas.com/kb/40/628.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See also&amp;nbsp;&lt;A href="http://support.sas.com/kb/64/976.html" target="_blank"&gt;http://support.sas.com/kb/64/976.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Only a few Authentication Domains are needed in order to register user logins in metadata, generally you don't create or generate those on-the-fly like logins ; the SMC User Manager interface will suffice (right-click &amp;gt; Authentication Domains).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 12:00:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-add-Authentication-domain-and-AD-ID-through-metadata-code/m-p/614738#M17948</guid>
      <dc:creator>ronan</dc:creator>
      <dc:date>2020-01-02T12:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to add Authentication domain and AD ID through metadata code</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/How-to-add-Authentication-domain-and-AD-ID-through-metadata-code/m-p/614798#M17951</link>
      <description>&lt;P&gt;Hey Ronan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the revert, i am already trying the same with canonical tables.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But in that as well i am facing one issue in which i am unable to add new users to existing group by using the attached code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: The method is not directed at a repository. (The Reposid parameter is blank.)&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* Specify connection options. Use an unrestricted user ID. Port 8561 */
options metaserver=XXXXXX
metaport=8561
metauser="sas"
metapass="XXXXXXX"
metarepository="Foundation";
  
/* Initialize the macro variables that create canonical tables. */
%mduimpc();

/* Create the person table. */
data &amp;amp;persontbla;
     %definepersoncols;
     infile datalines delimiter=',' missover;
         input keyid name description title;  
    datalines;            
P00111,ichelle Harrell,Mgr of Operations,Sr. Mgr
P00121,red Granite,NE Region Acct. Rep.,Account Rep II
P00131,rian Davis,Accounting System Developer,Senior Programmer
;                       


/* Create the grpmems table. */
data &amp;amp;idgrpmemstbla;
     %defineidgrpmemscols;
     infile datalines delimiter=',' missover;
         input grpkeyid memkeyid;
    datalines;            
A5A86HMO.A500001O,P00111
A5A86HMO.A500001O,P00131
;
 

/* Create the authdomain table. */
data &amp;amp;authdomtbla;
     %defineauthdomcols;
     infile datalines delimiter=',' missover;
         input keyid authDomName;
    datalines;            
A5A86HMO.AR000001,DefaultAuth
; 

/* Create the logins table. */
data &amp;amp;logintbla;
     %definelogincols;
     infile datalines delimiter=',' missover;
         input keyid userid password authdomkeyid;  
    datalines;            
P00111,IDBIBANK.AD\114901, ,A5A86HMO.AR000001
P00121,IDBIBANK.AD\114902, ,A5A86HMO.AR000001
P00131,IDBIBANK.AD\114903, ,A5A86HMO.AR000001
; 

/* Load the information from the work library into the metadata server. */


%mduimplb();

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Kaushal Solanki&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2020 16:58:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/How-to-add-Authentication-domain-and-AD-ID-through-metadata-code/m-p/614798#M17951</guid>
      <dc:creator>kaushalsolanki</dc:creator>
      <dc:date>2020-01-02T16:58:14Z</dc:date>
    </item>
  </channel>
</rss>

