PowerApps Security Trimming Options

You may also like...

2 Responses

  1. Chad Kealey says:

    Another option for security trimming is the DataSourceInfo function (https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-datasourceinfo). You can use this to check if the current user has a certain permission level on a particular data source. For example, you have a SharePoint list called “Invoices” that the current user can read, but not edit or create items in. In your app, you have a button for “New Invoice”. You could set the DisplayMode of that button to “If(DataSourceInfo(Invoices, DataSourceInfo.CreatePermission),Edit,Disable)” (my syntax may be a little off there). If the current user has permission to create items, the button will be clickable, otherwise, it will be disabled.

Leave a Reply

Your email address will not be published. Required fields are marked *