Dear,
In the process of automation, I am trying to use proc metadata to add a single user with the basic details to SAS Management Console with DefaultAuth domain.
My code:
filename _outxml "/localwork2/outxml.xml";
filename _respons "/localwork2/respons.xml";
proc metadata in=_outxml out=_respons;
run;
My _outxml code which is input to upload in MC is as below
<AddMetadata>
<Metadata>
<Person Id="$U_99999999" Name="Automate_Name" Desc="99999999" PublicType="User" UsageVersion="1000000" >
<ExternalIdentities>
<ExternalIdentity Name="Automate_Name" Identifier="U_99999999" Context="Passwd File Import" />
</ExternalIdentities>
<Logins>
<Login Name="99999999" Desc="Automate_Name login" Userid="99999999" >
<Domain>
<AuthenticationDomain ObjRef="DefaultAuth" />
</Domain>
</Login>
</Logins>
</Person>
</Metadata>
<Reposid>XXXXX.XXXXXX7</Reposid>
<NS>SAS</NS>
<Flags>268435456</Flags>
<Options/>
</AddMetadata>
When I run this, it fails with below error and user is not added.

I tried to solve this by removing the Domain Information tag highlighted in blue above and now the user is added this time ; but without Domain info DefaultAuth.

Why it fails when I try add with DefaultAuth . While I can manually edit the user and add him under DefaultAuth domain, I need help with the DefaultAuth information also to be uploaded in MC by proc metadata.
Please help with the changes required. Thanks a lot in advance.
-Mark