Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Approval action fails with XrmApprovalsGeneralPermissionsError

(0) ShareShare
ReportReport
Posted on by 2

Hi,

 

I have configured some approval request flows in combination with D365CE. I have configured/deployed these with a service account user so that connections and updates are running under that user.

 

Having tested the process now many times the Flow works fine, some finetuning needed though. Today I started testing with a test account so see if the security roles are correct in Dynamics CE. However this now fails miserably. I now end up with a error code "XrmApprovalsGeneralPermissionsError".

 

afbeelding.png

 

I have located the user that is mentioned here. This is a user called Microsoft Flow and has one security rol named Approval Administrator. I see that this role cannot be edited.

afbeelding.png

After this I assigned the System Administrator role to the Microsoft Flow user and everything works fine. Accordingly I have given this user a specific role with the prvActivateSynchronousWorkflow, but it then results in another privilege missing...

 

So:

- How come there's a Microsoft Flow user in the application, I can't find any documentation.

- Why is it working for me with a system administrator role, but not for the test user? In the end the Flow runs are done via the service account user.

- How do we solve this failure? Assign the Microsoft Flow user the sytem administrator role...?

  • KevinGador Profile Picture
    541 Super User 2025 Season 1 on at
    Re: Approval action fails with XrmApprovalsGeneralPermissionsError

    encountered this today and most fixes I've seen online doesnt seem to cut it. Any updates?

  • RobinFierens1 Profile Picture
    25 on at
    Re: Approval action fails with XrmApprovalsGeneralPermissionsError

    any updates on this problem? I'm having the same issues, on production only... 

  • CU28111156-0 Profile Picture
    32 on at
    Re: Approval action fails with XrmApprovalsGeneralPermissionsError

    I have the same issue and it is only happening in Dynamics 365 environments, where you want to use Approvals.

    Apparently the 'Approver Administrator' role need to have more permissions in these environments than in 'default'/non-dynamics environments.

     

    For the time being I would try to hund down all the necessary permissions and create separate permission role with all of these and assing this one to the application user.

     

    Alternatively you can assign System Administrator role, but as we know this is not the best practice.

    Ideal solution would be if Microsoft would fix the role permission that is assigned by default.

     

    Hope it makes sense.

    Tomas

  • JayWay Profile Picture
    2 on at
    Re: Approval action fails with XrmApprovalsGeneralPermissionsError

    In the end this is also a normal user, so I don't see why this is behaving this way.

    I have deleted the approval connection and created it again with the service account user. I'm very curious on how this will behave on the Test, Acceptance and UAT environments..

  • RookieI Profile Picture
    160 on at
    Re: Approval action fails with XrmApprovalsGeneralPermissionsError

    I always use the normal user account to configure Approval action, it seems to work.

     

    Do you have tried to delete Approval connection in the current environment and then create a connection using the account you mentioned?

     

    However, it is also very strange that the Approval action will automatically create a connection based on the account of the user currently logging in to MS Flow. It seems that it cannot be changed.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

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,631 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,976 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow