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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Authorize users to mak...
Power Apps
Suggested Answer

Authorize users to make changes to a Dataverse record

(1) ShareShare
ReportReport
Posted on by 6

I’m building a PowerApp that allows users to place orders. To prevent misuse, users must designate a co-owner (who will share responsibility for unauthorized actions).

My concern is that giving users direct write or update permissions in Dataverse could lead to issues. They could potentially input unauthorized values into the table - values that must be validated through the app. For instance, users need to select folders from their own SharePoint, and there’s nothing stopping them from directly setting the "Approved" field to true, bypassing the approval process.

To mitigate this, I’ve designed Flows for creating, approving, and canceling orders. These Flows use a service account with full access to the table. However, I’m realizing that I still need to share these Flows with users, which introduces a challenge: ensuring that only the designated co-owner, who is the only person able to see the button in the Canvas App, can trigger the approval Flow.

Given this situation, what is the best practice for scenarios where input into a Dataverse table must be strictly controlled through a Canvas App, and we need to prevent users from bypassing validation or accessing restricted functionality directly?

Categories:
I have the same question (0)
  • Suggested answer
    MichaelFP Profile Picture
    1,847 Super User 2025 Season 2 on at
    If i understood you have some record in the Dataverse that user don't have access to change, correct?

    The co-owner is related to canvas app itself not for the dataverse tables, in that case you can create multiple roles and assign for the persons even they are co-owner of the app. These roles could restrict some table to be read-only  and the user will not be able to make changes.
  • CU26081613-0 Profile Picture
    6 on at
    @MichaelFP No the users are listed as Co Owner of the dataverse record. They have to be able to make changes by clicking the approve button in the powerapp. I don’t want that users have direct access to the table but only through the PowerApp.
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,392 Super User 2025 Season 2 on at
    Hi
     
    In the Canvas app you need to load all of the users Roles / Security Groups into a Collection. Then in your buttons Visible or DisplayMode you would validate that they have the needed Role or exist in the Required Security group and then make it visible/enabled.
     
    Thats what you would do for Canvas apps.
    Here is a good example
     
     
  • CU26081613-0 Profile Picture
    6 on at
    For example: The user has to choose a date from a collection. I can‘t give them write access since they could technically enter any date.
     
    Seems like my problem is hard to understand.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard