web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DataSourceInfo.CreateP...
Power Apps
Answered

DataSourceInfo.CreatePermission & SharePoint?

(0) ShareShare
ReportReport
Posted on by 482

Hey there

 

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.

 

Kind regards,

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    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.

  • mrQ Profile Picture
    482 on at

     @eka24 

     

    Yes, this is inside PowerApps and the group that has permissions to the source (in above case 'App Settings') should see the button.

  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Watch this video;

    https://youtu.be/d0Ra0qr29JM

    ------------

    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.

  • mrQ Profile Picture
    482 on at

    @eka24 

    Thanks. This actually works for me.

     

    I take it that DataSourceInfo.CreatePermission is useless in combination with SharePoint then?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard