In this Power Automate tutorial, we will see how to fix the error ‘Attempted to perform unauthorized operation‘ that comes in Power Automate.
We got a requirement to create SharePoint sites using Power Automate. Where we created 3 types of SharePoint sites i.e. communication sites, group-connected team sites, and non-group-connected team sites using ‘Send an HTTP request to SharePoint‘ action. Also, we need to set the storage limit and add members to it.
When we create a SharePoint site, in the body of ‘Send an HTTP request to SharePoint’ we define a property called Site owner.
When you set the site owner as email@example.com and the action we are using has a connection using Microsoft credentials, such as firstname.lastname@example.org.
For example, If the connection is ‘email@example.com’,.
And the SharePoint site( let’s say communication site) we will create, whose owner is ‘firstname.lastname@example.org’.
So, when we send a request using ‘Send an HTTP request to SharePoint’, to get the group id from the site, the error occurs. Because the credential we are using to request the SharePoint site to get the group id, is not equal to the credential of the Site owner.
Fix the error ‘Attempted to perform an unauthorized operation’ in Power Automate
Here we will see how we can fix the error ‘Attempted to perform an unauthorized operation’ in Power Automate.
To fix this error ‘Attempted to perform an unauthorized operation’, we need to change the connection of the ‘ Send an HTTP request to SharePoint’ action. That means the site owner’s credentials, should be equal to the connection of action used to do SharePoint operation in Power Automate.
Now if we will run the flow, the flow will run successfully.
This is how we fix the error ‘Attempted to perform unauthorized operation‘ in Power Automate.
In this Power Automate tutorial, we saw how to fix the error ‘Attempted to perform unauthorized operation‘ in Microsoft Power Automate.
You may also like:
- Create SharePoint Online List and Columns from Excel Using Power Automate
- Power Apps Patch Error: The type of this argument ‘Attributes’ does not match the expected type ‘Record’. Found type ‘Text’
- Get Dataverse Created by in Power Automate
- Power Automate which exceeds the maximum nesting limit of ‘8’
- ‘The user does not exist or is not unique’ error in Power Automate
- BadRequest. The property ‘columns’ must be specified unless the ‘from’ property value is an array of objects
I am Bijay a Microsoft MVP (8 times – My MVP Profile) in SharePoint and have more than 15 years of expertise in SharePoint Online Office 365, SharePoint subscription edition, and SharePoint 2019/2016/2013. Currently working in my own venture TSInfo Technologies a SharePoint development, consulting, and training company. I also run the popular SharePoint website EnjoySharePoint.com