You should be able to do this by using the Install Menu Set script step. Make it conditional (i.e. inside an If - Else If branch) based on user privileges using the OnFirstWindowOpen trigger and that should get it done for you.
Set all layouts to use the "Default" layout.
Install Menu Set has an option to set a menu set as the default.
Thanks, David. Forgot that detail.
I have that script step (install Menu set) in a script that users trigger to authenticate their username password. Based on their permissions in a USERS table the script implements the correct menu set. My problem is once tehy leave the original layout the script directed tehm to, the menu set changes. Do I need to put a test for 'permission' in every Navigation script in order for this to work?
that sounds important. I'm unclear on what this means : Set all layouts to use the "Default" layout.
Thanks Mike and David,
That did the trick. same script as above but checked to use that menu set as default for file.
You guys rock
By Default, new menus are set to use the "Default Menu" set when the layout is created. You can change the specific menu set used by a layout in the layout setup.
You can change the file's Default Menu in the Manage Custom Menus dialogs.
Leaving all layouts set to Default, and using a script to install the correct menus for the user and make them default solves all but one issue: you may have some specialized layouts which you want to use only a highly restrictive menu set for everyone. You can set that up in the layout setup for such layouts by selecting a specific menu set to use instead of default, so such layouts remain unaffected by the changing default menu set installed for the file by your script.