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 / How to assign Datavers...
Power Apps
Answered

How to assign Dataverse security role automatically to user?

(0) ShareShare
ReportReport
Posted on by

Hello,

 

I have a canvas application that require specific Security role in data verse to be assigned to user who is accessing the canvas application.

 

Any clue how can I implement this operation as best optimized way?

 

Thanks,

Categories:
  • Verified answer
    CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @dave8 You'll normally assign a Security Role to users while sharing an App with them. If you have large base of users or if the user base changes dynamically, you can create a M365 Security Group and share that App with that Group and assign the required Security Role. Later, anyone who is added to that Security Group will get access to that App along with that Security Role.

    Hope this answers your question. 

  • Dave Wi Profile Picture
    on at

    Hi @CNT 

     

    Thank you for the attention!

     

    The User base is "Everyone" and It require for the Canvas Application functionality - I think, for everyone creating M365 group and associate that with Environment/Team would not be a feasible solution it seems - Any thoughts?

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @dave8 Well it's very simple then. Share the App with "Everyone" and assign the required Security Role and "Everyone" in your org will have the access.

    CNT_0-1623672595015.png

     

  • Dave Wi Profile Picture
    on at

    The issue with this canvas app, is that' it's not using Dataverse as a Datasource, so when I share the app with everyone, it would not ask me which security role to be shared from Dataverse, otherwise, that's the simplest solution for sure 😞 

     

    The Security role I require to assign from Dataverse is due to Flow Button functionality being used in App  which is currently the limitation for Power Platform - however that's not my current concern here.

     

    My concern is, how should I share security role as default permission in Dataverse with everyone in the org for Canvas app which is not using Dataverse as datasource.

     

    Any other suggestion?

     

    Thanks and regards,

  • Dave Wi Profile Picture
    on at

    I confirm creating a security group in Dataverse environment by associating ID of everyone group, worked like a charm!

     

    Thank you!!

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This worked for me as well. I found an existing security group that contained everyone from each continent and I was able to select a security role when trying to share the canvas app.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard