Give "usergroup" access to built-in commandbarbutton

Former Member
Former Member
I've been struggling with a case where I need to giva a special grou of user access to a commandmenubarbutton. I've a context menu options such as: Tools->Admin->DoSomething I've been searching the Aras webclient for a solution with no success.   Is there any JavaScript method that enables this contextbar when login success depending on what kind of user that logs in? Or is there any other way to give these users correct permission?
Parents
  • 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.
    1. Login as admin
    2. Navigate to Administration->Configuration->Client Presentation
    3. Click the hyperlink labeled "Global" in the Presentation [...] column
    4. In the Command Bar Section relationship tab, search for 'com.aras.innovator.cui_default.main_window_main_menu' in the name column
    5. Open this item
    6. In the Command Bar Item relationship tab, select 'Create Related' and add a new item with the following information
      • Name: MWMM Custom Button
      • Action: Add
      • For Identity [...]: Administrators
        • In this column, choose the Identity with the group of users you want to be able to access this button
    7. Right-click on this new item and select 'View "Command Bar Item"'
    8. Fill in the following information
      • Label: MWMM Button Label
      • Parent Menu:
        com.aras.innovator.cui_default.mwmm_admin_menu
      • Click Method: My Javascript Method
        • Set this to the javascript method that contains the code you want to run when a user clicks this button
    9. Save this button
    10. Save the Command Bar Section
    11. Log out
    12. Log back in as a member of the Identity you set in Step 6
    13. Confirm that you can see the new button
    14. Log out
    15. Log back in as a user who is not a member of the Identity you set in Step 6
    16. Confirm that you cannot see the new button
    You can also create your own sub-menus like the Admin menu by following similar steps. Chris ______________________ Christopher Gillis Aras Labs Software Engineer
Reply
  • 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.
    1. Login as admin
    2. Navigate to Administration->Configuration->Client Presentation
    3. Click the hyperlink labeled "Global" in the Presentation [...] column
    4. In the Command Bar Section relationship tab, search for 'com.aras.innovator.cui_default.main_window_main_menu' in the name column
    5. Open this item
    6. In the Command Bar Item relationship tab, select 'Create Related' and add a new item with the following information
      • Name: MWMM Custom Button
      • Action: Add
      • For Identity [...]: Administrators
        • In this column, choose the Identity with the group of users you want to be able to access this button
    7. Right-click on this new item and select 'View "Command Bar Item"'
    8. Fill in the following information
      • Label: MWMM Button Label
      • Parent Menu:
        com.aras.innovator.cui_default.mwmm_admin_menu
      • Click Method: My Javascript Method
        • Set this to the javascript method that contains the code you want to run when a user clicks this button
    9. Save this button
    10. Save the Command Bar Section
    11. Log out
    12. Log back in as a member of the Identity you set in Step 6
    13. Confirm that you can see the new button
    14. Log out
    15. Log back in as a user who is not a member of the Identity you set in Step 6
    16. Confirm that you cannot see the new button
    You can also create your own sub-menus like the Admin menu by following similar steps. Chris ______________________ Christopher Gillis Aras Labs Software Engineer
Children
No Data