I was wondering if someone has already worked with DataSourceInfo.CreatePermission and SharePoint? My goal was to hide a certain button based on the users permissions, but I don't want to hardcode it anywhere or have a list people would need to maintain. This is why I thought DataSourceInfo.CreatePermission would be perfect for this.
However, I can't get it to work. My test user only has read permissions and If(DataSourceInfo('App Settings', DataSourceInfo.CreatePermission),true,false) is always returning true, no matter what user is opening the app.
Does anyone know how to make this work? I have tried to hide a button directly with the command in blue, but also put true in a variable on the App.OnStart. Nothing seems to work.
Solved! Go to Solution.
Are you doing this inside Powerapps and what user or group of users do you to hide the button
If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.
Your chance to join an engaging competition of Power Platform enthusiasts.
The Super User program for 2022 - Season 2 has kicked off!
Attend in person or online, there are incredible conferences and events happening all throughout the month of September.