<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.aras.com/community/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Add User Identity</title><link>https://www.aras.com/community/f/development/36184/add-user-identity</link><description>Good day all. We have created an Identity called sm_AddUsers (v11 SP10). We have a separate team that is taking over the responsibilities of adding users to the system and they do not require any other elevated privileges, so I don&amp;#39;t want to add them</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Add User Identity</title><link>https://www.aras.com/community/thread/6413?ContentTypeID=1</link><pubDate>Thu, 04 Mar 2021 21:16:47 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:227d19fd-5ef5-4d7a-b4b0-ba01172a6594</guid><dc:creator>Nathan H.</dc:creator><description>&lt;p&gt;Good day all.&amp;nbsp; Just a follow up with this.&amp;nbsp;&amp;nbsp;&lt;span&gt;Josh Jerge (Aras SUpport) helped to modify a method that we have for allowing Users to be added.&amp;nbsp; I thought I would post it here in case someone else wants to use it.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:12px;"&gt;Name:&amp;nbsp;&amp;nbsp;UpdateUserForSSO&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:12px;"&gt;Execution:&amp;nbsp; World&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:12px;"&gt;Script:&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;p&gt;&amp;#39;attach this to the OnAfterAdd and OnAfterUpdate events for the USER itemtype&lt;br /&gt;&amp;#39;See myinnovator.com issue IR-006086.&lt;br /&gt;&amp;#39;MethodTemplateName=VBScriptMainUpgrade;&lt;/p&gt;
&lt;p&gt;Sub MethodMainSubroutine()&lt;/p&gt;
&lt;p&gt;Const pmIdentityNm As String = &amp;quot;Administrators&amp;quot;&lt;br /&gt;Dim pmIdentity As Aras.Server.Security.Identity = Aras.Server.Security.Identity.GetByName(pmIdentityNm)&lt;/p&gt;
&lt;p&gt;Dim pmIdentityWasGranted As Boolean = Aras.Server.Security.Permissions.GrantIdentity(pmIdentity)&lt;br /&gt; If Not CCO.Permissions.UserHasRootOrAdminIdentity() Then&lt;br /&gt; Exit Sub&lt;br /&gt; End If&lt;/p&gt;
&lt;p&gt;Dim cfgpath As String = &amp;quot;/Innovator/ClientLogon&amp;quot;&lt;br /&gt; Dim cfg As XmlElement = CType(CCO.Cache.GetCacheInfo(&amp;quot;ApplicationXML&amp;quot;).SelectSingleNode(cfgpath), XmlElement)&lt;/p&gt;
&lt;p&gt;If IsNothing(cfg) OrElse cfg.GetAttribute(&amp;quot;shared_secret&amp;quot;) = &amp;quot;&amp;quot; Then&lt;br /&gt; Exit Sub&lt;br /&gt; End If&lt;/p&gt;
&lt;p&gt;CCO.ApplyItem.ExecuteMethodByName(inDom, outDom, &amp;quot;Reset All Auth Passwords&amp;quot;, True)&lt;br /&gt; If pmIdentityWasGranted Then&lt;br /&gt; Aras.Server.Security.Permissions.RevokeIdentity(pmIdentity)&lt;br /&gt; End If&lt;/p&gt;
&lt;p&gt;End Sub&lt;/p&gt;
&lt;span style="font-family:Arial, Helvetica, sans-serif;"&gt;&lt;span style="font-size:12px;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add User Identity</title><link>https://www.aras.com/community/thread/6012?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 14:17:08 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:6f95ec40-a867-46a0-9040-42f3651844bc</guid><dc:creator>Nathan H.</dc:creator><description>&lt;p&gt;Well, it looks like it was fixed with FM.&amp;nbsp; One of the team members contacted me this morning to let me know that she was able to add a user.&amp;nbsp; I guess it just took a little bit for everything to work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>