Recently while trying to change the owner of the workflow we were getting the below error
Flow client error returned with status code “Forbidden” and details “(“error”:X [“code”: “ConnectionAuthorizationFailed”, “message”: “The caller object id is ‘ffcdd1fc-2858-4019-9a96-19d73ae124c8″. Connection ‘providers/Microsoft.PowerApps/APIs/shared_commondataserviceforapps/connections/shared-commondataser-87229e07-1003-4e05-8172-fdaf112ceb98’ to ‘shared_commondataserviceforapps cannot be used to activate this flow, either because this is not a valid connection or because it is not a connection you have access permission for. Either replace the connection with a valid connection you can access or have the connection owner activate the flow, so the connection is shared with you in the context of this flow.”}}”.
Below are the steps we were following to change the owner of the cloud flow –
Select Edit for the flow, specify the owner and save.
In our case, the owner had left the organization and the user’s record was not available in the CRM. Finally, we managed to change the owner and fix the issue, by assigning the new owner to the corresponding modern flow record through the below steps –
- Open Advanced Find
- Search for Process Type equals Modern Flow
- Select the flow, click on the Assign Process button and specify the new owner.
This way we were able to change the owner without any error and got the flow working properly.
Hope it helps..