cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ezFlow
Helper II
Helper II

Model Driven apps and securing attachments saved in SharePoint

Hi,

We enabled Model Driven apps to store document in SharePoint. The issue is that we use Dataverse Teams groups to assign Row level access. However, once a document is attached to the Row, it creates a sharepoint folder that is visible to users.
Is there a way of out of the box or flow to assign permission (Record Owner)  automatically to that SP folder?

Otherwise the attachments are visible to all users. who can access the SP Site.

1 ACCEPTED SOLUTION

Accepted Solutions
Mira_Ghaly
Dual Super User
Dual Super User

@ezFlow 

You can use powerautomate to assign permissions on SharePoint folders using Send HTTP Request action using the below article as an example of sending http requests.

https://techcommunity.microsoft.com/t5/microsoft-365-pnp-blog/how-to-use-send-an-http-request-to-sha...

And you can use the below API to assign folder permissions;

https://steveknutson.blog/2021/12/10/setting-sharepoint-permissions-with-power-automate/

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

1 REPLY 1
Mira_Ghaly
Dual Super User
Dual Super User

@ezFlow 

You can use powerautomate to assign permissions on SharePoint folders using Send HTTP Request action using the below article as an example of sending http requests.

https://techcommunity.microsoft.com/t5/microsoft-365-pnp-blog/how-to-use-send-an-http-request-to-sha...

And you can use the below API to assign folder permissions;

https://steveknutson.blog/2021/12/10/setting-sharepoint-permissions-with-power-automate/

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Users online (5,504)