<?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>Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/f/development/3847/check-if-user-has-certain-permissions-in-client-side-method</link><description>Hi, 

I created a custom Action in ItemType &amp;#39;Part&amp;#39; that calls a client Method. Only the Part Owner shall be able to run the Action.
The Owner can be one person or a user group. How can I check, if the current user is in this user group and have the necessary</description><dc:language>ja-JP</dc:language><generator>Telligent Community 12</generator><item><title>RE: Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/thread/10978?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 22:25:25 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:25c13750-18d6-439d-b575-07399b01e945</guid><dc:creator>Kamran Aftab</dc:creator><description>&lt;p&gt;Hi Eli,&lt;/p&gt;
&lt;p&gt;Thanks for taking note of this. I have another request for documentation, this would be for the &amp;quot;Client Presentation/CUI&amp;quot;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Kamran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/thread/10976?ContentTypeID=1</link><pubDate>Tue, 18 Mar 2025 16:43:41 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:36241676-a366-4234-bae3-adb31ea85bc4</guid><dc:creator>Eli Donahue</dc:creator><description>&lt;p&gt;Hi Kamran! Thanks for the feedback. We&amp;#39;re working to improve our API docs, and it&amp;#39;s helpful to hear what areas are most useful to you guys. I&amp;#39;ve flagged the CCO object as a good topic to prioritize.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/thread/10975?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 17:29:27 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:7161c29b-f674-4462-be05-a988e06cf071</guid><dc:creator>Kamran Aftab</dc:creator><description>&lt;p&gt;Thanks for your response. I wonder why they don&amp;#39;t publish the API documentation. That would be so helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/thread/10972?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 16:06:30 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c6df86dc-8dff-4c27-917a-350e5971d7a2</guid><dc:creator>AngelaIp</dc:creator><description>&lt;p&gt;I assume this function is part of the Aras.Server.Security.Permissions class in the Aras.Server.Core.dll (?). At least in I12. I don&amp;acute;t know if there is an official API reference guide&amp;nbsp;available. In theory you could analyse the&amp;nbsp;DLL but this probably would&amp;nbsp;void the terms-of-use. And the function names are&amp;nbsp;not very useful anyway without proper samples.&lt;/p&gt;
&lt;p&gt;In this this specific case I either found it in this forum or somewhere in the OOTB Innovator code years ago. The PE application uses it. In general the PE code contains a lot of useful and less known stuff to reuse.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But also the forum mentioned it:&amp;nbsp;&amp;nbsp;&lt;a href="https://www.aras.com/community/f/archive/2804/developers-forum---check-identity-list-for-specific-identity"&gt;DEVELOPERS FORUM - Check Identity List for specific identity&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In I14 the code has changed to:&amp;nbsp;CCO.Permissions.IdentitiesList&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/thread/10971?ContentTypeID=1</link><pubDate>Mon, 17 Mar 2025 15:19:59 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c2005cdc-5438-471a-9355-5dbfd90c858d</guid><dc:creator>Kamran Aftab</dc:creator><description>&lt;p&gt;Hi Angela,&lt;/p&gt;
&lt;p&gt;I know this is very old, but you probably know the answer to this question. Can I ask you how you came to find this method (Aras.Server.Security.Permissions.Current.IdentitiesList)? Is there documentation somewhere that lists this? Or was it something you picked from some other code?&lt;/p&gt;
&lt;p&gt;Thank you,&lt;/p&gt;
&lt;p&gt;Kamran&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/thread/1865?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 08:11:01 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:912ff580-8ab9-4ec6-9f9f-dd59973bc05e</guid><dc:creator>AngelaIp</dc:creator><description>Hi,

this is very nice solution, it works excellent! Thanks for your quick help!

Angela&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if user has certain permissions in client side Method</title><link>https://www.aras.com/community/thread/1864?ContentTypeID=1</link><pubDate>Thu, 26 Jul 2018 06:24:17 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:ca4eb90a-8df2-4712-a629-335d2339ee2b</guid><dc:creator>Andreas S.</dc:creator><description>Hi,

you can use this:
&lt;pre&gt;&lt;code&gt;
function pb_isCurrUserMemberOfIdentityId(identity_to_check)
{
if (identity_to_check === &amp;quot;&amp;quot;) {return false;}
var sessionIdentitites_array = top.aras.getIdentityList().split(&amp;quot;,&amp;quot;);
// now we have all identities the current user (session) is member of
// scan if given identity is in the list - if yes, return true
for (var i=0;i&amp;lt;sessionIdentitites_array.length;i++)
{
if (identity_to_check == sessionIdentitites_array[i]) {return true;}
}
return false;
};
&lt;/code&gt;&lt;/pre&gt;


&amp;nbsp;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>