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 Automate / Add permissions for cr...
Power Automate
Unanswered

Add permissions for created group in folder

(0) ShareShare
ReportReport
Posted on by 12

Hi all,

 

I'm trying to build a flow that when a folder is created also a security group based on that folder is created. (this is just a test stage)

After that the inheritance for that folder will be stopped and the visitor group will be removed. Alle these steps work.

 

But now i'm stuck with the following. I'm trying to add permissions to the created group (step2) as member of the created folder (step1). And i'm not really sure how to continue. Tried a lot of different options but nothing seem to work.

 

 

ndrake92_0-1714547256967.png

ndrake92_1-1714547454483.png

 

Hopefully someone can help.

 

Chris

Categories:
I have the same question (0)
  • YaminiBharathiK Profile Picture
    62 on at

    Hi,

     

    Could you please what is the exact error you are getting? what is the outcome from HTTP request ? 

     

    Thanks.

  • ndrake92 Profile Picture
    12 on at

    Hi Yamini,

     

    I'm getting the error below:

    {
    "status": 400,
    "message": "The expression \"web/GetFolderByServerRelativeUrl('Gedeelde documenten/Kevin')/ListItemAllFields/RoleAssignments/addroleassignment(principalid=21, roleDefId=1073741826)\" is not valid.\r\nclientRequestId: b59dd003-d36a-432d-8b31-7a7d0163ed6e\r\nserviceRequestId: 2d0724a1-9003-8000-8cd1-b0025cafd4d2",
    "source": "https://***.sharepoint.com/sites/GerritsenConsultancy/_api/web/GetFolderByServerRelativeUrl('Gedeelde%20documenten/Kevin')/ListItemAllFields/RoleAssignments/addroleassignment(principalid=21,%20roleDefId=1073741826)",
    "errors": [
    "-1",
    "Microsoft.SharePoint.Client.InvalidClientQueryException"
    ]
    }

     

    The folder and group both exist. So i'm not really sure why it is giving this error.

     

    Chris

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 711

#2
Vish WR Profile Picture

Vish WR 691

#3
Haque Profile Picture

Haque 525

Last 30 days Overall leaderboard