<?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>Identity where use in other Identity</title><link>https://www.aras.com/community/f/development/5889/identity-where-use-in-other-identity</link><description>Hi 
 I want to know Identity where use in other Identity. But I need SQL don&amp;#39;t API 
 Like method &amp;quot;Aras.Server.Security.Permissions.GetAncestorIdentityIds&amp;quot;. Anybody know SQL how to do.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Identity where use in other Identity</title><link>https://www.aras.com/community/thread/2718?ContentTypeID=1</link><pubDate>Fri, 22 Mar 2019 13:20:13 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:e1af7334-6d76-4a6f-9382-7ecb1bf67058</guid><dc:creator>Christopher Gillis</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;We typically don&amp;#39;t recommend using SQL as it bypasses the standard Aras permission model. If you&amp;#39;re doing this inside of Aras Innovator or from an external application where you have access to the IOM.dll, I&amp;#39;d recommend avoiding this approach if possible.&lt;/p&gt;
&lt;p&gt;That being said the query you&amp;#39;re looking for would look something like the one below.&amp;nbsp;You&amp;#39;ll just need to change the bolded text to be the name of the Identity you want to search for.&amp;nbsp;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;select * from innovator.[identity] where id in &lt;/em&gt;&lt;br /&gt;&lt;em&gt; (select source_id from innovator.member where related_id in&lt;/em&gt;&lt;br /&gt;&lt;em&gt; (select id from innovator.[identity] where keyed_name = &amp;#39;&lt;strong&gt;Innovator Admin&lt;/strong&gt;&amp;#39;))&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Please note that this query will just get the first level of Identities that use the one you&amp;#39;re searching for.&lt;/p&gt;
&lt;p&gt;Chris&lt;/p&gt;
&lt;p&gt;Christopher Gillis&lt;/p&gt;
&lt;p&gt;Aras Labs Software Engineer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>