<?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: Is it possible to rename the metadata defintion of objects in SAS Management Console? in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/444386#M12529</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work, and it is an efficient way of updating these names. However, it requires a &lt;STRONG&gt;disclaimer:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS 9.3, it used to be possible to update the names of user and group objects within Management Console (I even think that you'd still be able to do this if you got your hands on a version of SASMC 9.3). However, SAS removed this ability in 9.4, and I'm assuming they have good reason for doing so - probably because the name is used as a key in some user sync routines, or in one of their solutions (which is&amp;nbsp;where&amp;nbsp;I imagine&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS&lt;/a&gt;'s&amp;nbsp;question comes from). What this code does therefore is override the restriction put in place by SAS in Management Console 9.4, and as such I&amp;nbsp;guess it is 'not supported' (edit: just re-read Simon's reply, it's not supported; no need to guess).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that said, I've updated these attributes many times before on our environments with no consequence, and I can't&amp;nbsp;think of any reason why&amp;nbsp;doing this would ever be harmful. However, as when running any code that updates metadata, make sure you back up repository before running this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the code it's self explanatory:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data changenames;
  length oldname newname $256.;
  infile datalines dsd;  
  input oldname $ newname $;
  datalines;
  Some old group name, Shiny New Group Name
  Some other group name, Shinier New Group Name
  Another old group name, Another New Group Name
;
run;

data identitygroups(keep=uri oldname newname rc);
  length uri $256;&lt;BR /&gt;  nobj=1; n=1;
  set changenames;
  do while(nobj &amp;gt;= 0);
    nobj=metadata_getnobj(cats("omsobj:IdentityGroup?@Name='",oldname,"'"),n,uri);
    rc=metadata_setattr(uri,"Name",newname); 
    n=n+1;
  end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that with this code, any group names that aren't matched in the oldname var will stop the loop from iterating and leave the remaining&amp;nbsp;values unchanged. It also won't let you rename a group to another group which already exists, which is a good thing (just tested &amp;amp; observed in 9.4m3).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
    <pubDate>Sat, 10 Mar 2018 14:17:08 GMT</pubDate>
    <dc:creator>boemskats</dc:creator>
    <dc:date>2018-03-10T14:17:08Z</dc:date>
    <item>
      <title>Is it possible to rename the metadata defintion of objects in SAS Management Console?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/443705#M12495</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've a little bit garbage in our SAS environment with naming convention of groups in SAS Management Console.&lt;/P&gt;&lt;P&gt;We are looking for a solution (efficient way) which makes possible to rename the metadata definition of group objects.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have experience with this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 10:44:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/443705#M12495</guid>
      <dc:creator>sergie89</dc:creator>
      <dc:date>2018-03-08T10:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to rename the metadata defintion of objects in SAS Management Console?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/443720#M12499</link>
      <description>&lt;P&gt;Certain parts of the group and user object can be edited. There are some parts&amp;nbsp;where the value is immutable inside SAS Management Console. If a value is immutable inside SAS Management Console then it is not supported to change them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For those&amp;nbsp;types of situation you might be best off to plan to migrate to a new security model that is a bit more sensible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This paper still to this day is one of the best on Metadata security.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings11/376-2011.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings11/376-2011.pdf&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try plan to migrate slowly to model that aims to follow the best practices outlined in the paper.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 12:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/443720#M12499</guid>
      <dc:creator>SimonDawson</dc:creator>
      <dc:date>2018-03-08T12:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to rename the metadata defintion of objects in SAS Management Console?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/444093#M12519</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/192219"&gt;@sergie89&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;exactly as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/11650"&gt;@SimonDawson&lt;/a&gt;&amp;nbsp;said.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A question, as your users and groups created manually in the metadata server, or by a sync script, taking them from a csv, AD or LDAP?&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 14:08:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/444093#M12519</guid>
      <dc:creator>JuanS_OCS</dc:creator>
      <dc:date>2018-03-09T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to rename the metadata defintion of objects in SAS Management Console?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/444386#M12529</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This should work, and it is an efficient way of updating these names. However, it requires a &lt;STRONG&gt;disclaimer:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS 9.3, it used to be possible to update the names of user and group objects within Management Console (I even think that you'd still be able to do this if you got your hands on a version of SASMC 9.3). However, SAS removed this ability in 9.4, and I'm assuming they have good reason for doing so - probably because the name is used as a key in some user sync routines, or in one of their solutions (which is&amp;nbsp;where&amp;nbsp;I imagine&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS&lt;/a&gt;'s&amp;nbsp;question comes from). What this code does therefore is override the restriction put in place by SAS in Management Console 9.4, and as such I&amp;nbsp;guess it is 'not supported' (edit: just re-read Simon's reply, it's not supported; no need to guess).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With that said, I've updated these attributes many times before on our environments with no consequence, and I can't&amp;nbsp;think of any reason why&amp;nbsp;doing this would ever be harmful. However, as when running any code that updates metadata, make sure you back up repository before running this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope the code it's self explanatory:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data changenames;
  length oldname newname $256.;
  infile datalines dsd;  
  input oldname $ newname $;
  datalines;
  Some old group name, Shiny New Group Name
  Some other group name, Shinier New Group Name
  Another old group name, Another New Group Name
;
run;

data identitygroups(keep=uri oldname newname rc);
  length uri $256;&lt;BR /&gt;  nobj=1; n=1;
  set changenames;
  do while(nobj &amp;gt;= 0);
    nobj=metadata_getnobj(cats("omsobj:IdentityGroup?@Name='",oldname,"'"),n,uri);
    rc=metadata_setattr(uri,"Name",newname); 
    n=n+1;
  end;
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep in mind that with this code, any group names that aren't matched in the oldname var will stop the loop from iterating and leave the remaining&amp;nbsp;values unchanged. It also won't let you rename a group to another group which already exists, which is a good thing (just tested &amp;amp; observed in 9.4m3).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nik&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 14:17:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/444386#M12529</guid>
      <dc:creator>boemskats</dc:creator>
      <dc:date>2018-03-10T14:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to rename the metadata defintion of objects in SAS Management Console?</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/444556#M12535</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46760"&gt;@boemskats&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply. This answer is what we need.&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/35204"&gt;@JuanS_OCS&lt;/a&gt;&amp;nbsp;the groups are created manualy.&amp;nbsp;Unfortunately, the previous administrator has not thought about the name standards for group objects. So we will fix this issue to create more clearity for the administrators, because the envirinoment is growing by number of users.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/46760"&gt;@boemskats&lt;/a&gt;We are using version 9.3 M3 of SAS. I can&amp;nbsp;try to use your SAS code on our test environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Mar 2018 16:05:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/Is-it-possible-to-rename-the-metadata-defintion-of-objects-in/m-p/444556#M12535</guid>
      <dc:creator>sergie89</dc:creator>
      <dc:date>2018-03-11T16:05:05Z</dc:date>
    </item>
  </channel>
</rss>

