<?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>Give &amp;quot;usergroup&amp;quot; access to built-in commandbarbutton</title><link>https://www.aras.com/community/f/development/3302/give-usergroup-access-to-built-in-commandbarbutton</link><description>I&amp;#39;ve been struggling with a case where I need to giva a special grou of user access to a commandmenubarbutton.

I&amp;#39;ve a context menu options such as: Tools-&amp;gt;Admin-&amp;gt;DoSomething

I&amp;#39;ve been searching the Aras webclient for a solution with no success.

 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Give "usergroup" access to built-in commandbarbutton</title><link>https://www.aras.com/community/thread/833?ContentTypeID=1</link><pubDate>Tue, 12 Sep 2017 15:47:11 GMT</pubDate><guid isPermaLink="false">916d3f7e-8ddc-42f8-8d45-380822f51406:c482dcaf-ddc5-43e3-82a7-29fc3e3b1db7</guid><dc:creator>Christopher Gillis</dc:creator><description>Hello,

This is possible using the CUI tools available in 11.0 SP9.

Please follow the steps below for an example of how to add a custom button to the Admin menu.
&lt;ol&gt;
 	&lt;li&gt;Login as admin&lt;/li&gt;
 	&lt;li&gt;Navigate to Administration-&amp;gt;Configuration-&amp;gt;Client Presentation&lt;/li&gt;
 	&lt;li&gt;Click the hyperlink labeled &amp;quot;Global&amp;quot; in the Presentation [...] column&lt;/li&gt;
 	&lt;li&gt;In the Command Bar Section relationship tab, search for &amp;#39;com.aras.innovator.cui_default.main_window_main_menu&amp;#39; in the name column&lt;/li&gt;
 	&lt;li&gt;Open this item&lt;/li&gt;
 	&lt;li&gt;In the Command Bar Item relationship tab, select &amp;#39;Create Related&amp;#39; and add a new item with the following information
&lt;ul&gt;
 	&lt;li&gt;Name: MWMM Custom Button&lt;/li&gt;
 	&lt;li&gt;Action: Add&lt;/li&gt;
 	&lt;li&gt;For Identity [...]: Administrators
&lt;ul&gt;
 	&lt;li&gt;In this column, choose the Identity with the group of users you want to be able to access this button&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
 	&lt;li&gt;Right-click on this new item and select &amp;#39;View &amp;quot;Command Bar Item&amp;quot;&amp;#39;&lt;/li&gt;
 	&lt;li&gt;Fill in the following information
&lt;ul&gt;
 	&lt;li&gt;Label: MWMM Button Label&lt;/li&gt;
 	&lt;li&gt;Parent Menu:
&lt;div class="sys_f_value"&gt;&lt;span id="E89FDC37FA71486DB131D59F06AB0B0F" class="parent_menu"&gt;&lt;span id="E89FDC37FA71486DB131D59F06AB0B0F_span" class="sys_item_link parent_menu"&gt;com.aras.innovator.cui_default.mwmm_admin_menu&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/li&gt;
 	&lt;li&gt;Click Method: My Javascript Method
&lt;ul&gt;
 	&lt;li&gt;Set this to the javascript method that contains the code you want to run when a user clicks this button&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
 	&lt;li&gt;Save this button&lt;/li&gt;
 	&lt;li&gt;Save the Command Bar Section&lt;/li&gt;
 	&lt;li&gt;Log out&lt;/li&gt;
 	&lt;li&gt;Log back in as a member of the Identity you set in Step 6&lt;/li&gt;
 	&lt;li&gt;Confirm that you can see the new button&lt;/li&gt;
 	&lt;li&gt;Log out&lt;/li&gt;
 	&lt;li&gt;Log back in as a user who is not a member of the Identity you set in Step 6&lt;/li&gt;
 	&lt;li&gt;Confirm that you cannot see the new button&lt;/li&gt;
&lt;/ol&gt;
You can also create your own sub-menus like the Admin menu by following similar steps.

Chris

______________________

Christopher Gillis

Aras Labs Software Engineer&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>