<?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 XML Metadata Interface Adding User to Group in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/441581#M12448</link>
    <description>&lt;P&gt;Hey there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a user to the SAS metadata using the XML Metadata Interface. In the "Add Metadata" tab, I used the following XML:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&amp;lt;Person Desc="" DisplayName="Testuser" IsHidden="0" Name="Testuser Test" Title="Tester"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;This worked absolutely fine. Now I need to add the user to a group which is already existing in the metadata.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I tried the following in the "Update Metadata" tab:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;Person Id="A5NUQPXO.AP00002V"&amp;gt;
            &amp;lt;IdentityGroups&amp;gt;
                &amp;lt;IdentityGroup Id="A5NUQPXO.A500001C" Name="REU" Desc="REU Reporting"/&amp;gt;
            &amp;lt;/IdentityGroups&amp;gt;
&amp;lt;/Person&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This didn't work and it responded with the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;Error:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;com.sas.iom.SASIOMDefs.GenericError: The association from IdentityGroup : A5NUQPXO.A500001C to Person : A5NUQPXO.AP00002V cannot be created.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The association from IdentityGroup : A5NUQPXO.A500001C to Person : A5NUQPXO.AP00002V cannot be created.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The IDs should actually be correct. I used the Metadata browser in the SAS Foundation and copied the IDs from there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Do you know how I can add a user to a group using the XML Metadata Interface?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 02 Mar 2018 15:16:28 GMT</pubDate>
    <dc:creator>infmja</dc:creator>
    <dc:date>2018-03-02T15:16:28Z</dc:date>
    <item>
      <title>XML Metadata Interface Adding User to Group</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/441581#M12448</link>
      <description>&lt;P&gt;Hey there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I added a user to the SAS metadata using the XML Metadata Interface. In the "Add Metadata" tab, I used the following XML:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&amp;lt;Person Desc="" DisplayName="Testuser" IsHidden="0" Name="Testuser Test" Title="Tester"/&amp;gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;This worked absolutely fine. Now I need to add the user to a group which is already existing in the metadata.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;I tried the following in the "Update Metadata" tab:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;Person Id="A5NUQPXO.AP00002V"&amp;gt;
            &amp;lt;IdentityGroups&amp;gt;
                &amp;lt;IdentityGroup Id="A5NUQPXO.A500001C" Name="REU" Desc="REU Reporting"/&amp;gt;
            &amp;lt;/IdentityGroups&amp;gt;
&amp;lt;/Person&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This didn't work and it responded with the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;EM&gt;Error:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;com.sas.iom.SASIOMDefs.GenericError: The association from IdentityGroup : A5NUQPXO.A500001C to Person : A5NUQPXO.AP00002V cannot be created.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;The association from IdentityGroup : A5NUQPXO.A500001C to Person : A5NUQPXO.AP00002V cannot be created.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The IDs should actually be correct. I used the Metadata browser in the SAS Foundation and copied the IDs from there.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Do you know how I can add a user to a group using the XML Metadata Interface?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Kind regards&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 02 Mar 2018 15:16:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/441581#M12448</guid>
      <dc:creator>infmja</dc:creator>
      <dc:date>2018-03-02T15:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: XML Metadata Interface Adding User to Group</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/442164#M12449</link>
      <description>&lt;P&gt;Hi Martin,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try this instead, it should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&amp;lt;Person Id="A5NUQPXO.AP00002V"&amp;gt;
  &amp;lt;IdentityGroups&amp;gt;
    &amp;lt;IdentityGroup &lt;STRONG&gt;ObjRef&lt;/STRONG&gt;="A5NUQPXO.A500001C" /&amp;gt;
  &amp;lt;/IdentityGroups&amp;gt;
&amp;lt;/Person&amp;gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Sun, 04 Mar 2018 19:25:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/442164#M12449</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2018-03-04T19:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: XML Metadata Interface Adding User to Group</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/442262#M12450</link>
      <description>&lt;P&gt;Thank you very much Nik! It worked!&lt;/P&gt;&lt;P&gt;Is there a documentation about these XMLs somewhere or how/where did you figure it out?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Mar 2018 07:37:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/442262#M12450</guid>
      <dc:creator>infmja</dc:creator>
      <dc:date>2018-03-05T07:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: XML Metadata Interface Adding User to Group</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/442332#M12454</link>
      <description>&lt;P&gt;It's in the SAS docs here:&amp;nbsp;&lt;A href="http://documentation.sas.com/?docsetId=omaref&amp;amp;docsetTarget=n1ow0lbqw8ktpwn1e37i0p90jeaz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en" target="_blank"&gt;http://documentation.sas.com/?docsetId=omaref&amp;amp;docsetTarget=n1ow0lbqw8ktpwn1e37i0p90jeaz.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Most of the OMI documentation is awesome, there's just a lot of it. Quoting from the page I linked to:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;DIV id="p08r0b1blyrev6n1pv782h0efdmx" class="xis-paragraph"&gt;The AddMetadata method creates a new object for every property string that is submitted in the &amp;lt;METADATA&amp;gt; element, unless the ObjRef attribute is included in the property string. ObjRef is supported only in a nested property string. It specifies that the object instance is an existing metadata object. It instructs the SAS Metadata Server to create an object reference to the specified object without modifying the specified object's other properties.&amp;nbsp;&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;Not sure how much this applies as you're updating metadata rather than adding. I dug it up from some old code, so I'm pretty sure my 'journey of discovery' was trial &amp;amp; error &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="xis-paragraph"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 05 Mar 2018 12:59:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/XML-Metadata-Interface-Adding-User-to-Group/m-p/442332#M12454</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2018-03-05T12:59:49Z</dc:date>
    </item>
  </channel>
</rss>

