donjae.blogg.se

Scriptcase hide menu items based on group access
Scriptcase hide menu items based on group access












scriptcase hide menu items based on group access

Specify the location and properties for the new custom action Hide Grid Header : Hide the Grids header when using the Search in the iframe. Var oUserCustomAction = collUserCustomAction.add() This option is available only when the initial module is set to be the Search. Var collUserCustomAction = oWeb.get_userCustomActions() If the current user is not a member of the group 'Secret service', then we will select that list item holding the link to 'Secret-headquarters.aspx' and set it hidden.

scriptcase hide menu items based on group access

with the intention of hiding one if you are not a member of the O365 Group. If the current user is a member of the group 'Secret service', we will take no action and leave the navigation as is. The role-based access to the page works fine, it is just the menu that won´t work as I want.

#Scriptcase hide menu items based on group access code

How can I do this My code goes like this. Scriptcase Scriptcase PHP Code Generator. PowerApps Hide Buttons & Objects based on Office 365 Group Membership. I want to hide items in a menu based on if the user belongs to a certain role or not. Get the custom user action collection and add the new custom action to it The menu inside Scriptcase 8.1 will offer the option Breadcrumbs display within applications, it wi.

scriptcase hide menu items based on group access

Var clientContext = new SP.ClientContext.get_current() Trigger the function by a button click, I also added the script to remove custom actions. The script just need run once, so you could trigger it manually, for example:














Scriptcase hide menu items based on group access