Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Granting user access to its own row in dataverse table

(0) ShareShare
ReportReport
Posted on by

We want to automatically grant office users access (read and write) to their own dataverse row. So the office user should be assigned to own the row of the table, which corresponds to their name. How is the code for the unbound action, grantaccess? 

The picture shows that we have one entry which is the full name on the left and we want to automatically assign the user that corresponds to this full name.

mariaschm_0-1635170594794.png

 

  • Community Power Platform Member Profile Picture
    on at
    Re: Granting user access to its own row in dataverse table

    Hi @v-bofeng-msft,
    thank you for your answer. That is exactly what i mean, but I do not want a button On Select property to do it, but automatically within a flow. Any suggestions?

  • Verified answer
    v-bofeng-msft Profile Picture
    on at
    Re: Granting user access to its own row in dataverse table

    Hi @Anonymous :

    Do you want to replace Ower in the table with the value in the FullName field? Something like:

    vbofengmsft_0-1635401714763.png

    to

    vbofengmsft_1-1635402717713.png

    If so,I've made a test for your reference:

    1\Create a canvas and add Users and Your Data table as datasource:

    2\Add a button and set it's OnSelect property to:

     

    ClearCollect(TheSource,Homes.Home); /*Homes is my custom table*/ /*Home is the Guid column*/
    ForAll(TheSource,
     Patch(
     Homes,
     LookUp(Homes,Home = TheSource[@Home]),
     {Owner:LookUp(Users,'Full Name' = LookUp(Homes,Home = TheSource[@Home]).Name)}
    ))

     

    Best Regards,

    Bof

     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,670 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,011 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow