Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Work flow error - Insufficient security permissions for user X

(0) ShareShare
ReportReport
Posted on by 85

I have  workflows that are assigned to a user group.  The users in the group all have roles that should allow them to have a workflow assigned to them.  HOWEVER, the users that do not have system admin as a role create the error.

This is happening in Ledger daily journal workflow and customer free text invoice workflows.

Categories:
  • Suggested answer
    b_radlyjames Profile Picture
    3,026 on at
    Work flow error - Insufficient security permissions for user X
    I know this is old but I wanted to respond and expand on CrniBranislay's answer.
    User CrniBranislay is correct.  This error is showing because of the query.
    More specifically it is showing because although you were allowed to submit, the query isn't returning a record for the workflow to process.
    It's a very misleading error.
     
     
  • CrniBranislav Profile Picture
    10 on at
    RE: Work flow error - Insufficient security permissions for user X

    I agree (in first part). But... rather it works as system administrator or not, if query (from document class) doesn't return anything (not necessary  security related, but also bad joins between datasources, bad ranges...) then AX will throw this error.

  • André Arnaud de Calavon Profile Picture
    283,862 Test role Public on at
    RE: Work flow error - Insufficient security permissions for user X

    Hi Branislav,

    In case it works as system administrator, then still it is related to the granted permissions. If due to insufficient permissions the query is not returning data, then the user needs to have permissions to read data from the query.

  • CrniBranislav Profile Picture
    10 on at
    RE: Work flow error - Insufficient security permissions for user X

    I have similar problem with custom WF, with custom query in document class. When I debug this issue, I saw that error message is misleading, and problem was in custom query. if you look into class SysWorkflowDocument, method assertAsUser(), you will see this piece of code:

         pastedimage1667548863916v1.png

    Basically, if document query returns empty buffer, then "permission" variable is "false" and AX will return misleading message that "user don't have insufficient rights...", but problem is not in user rights, but in query.

    Maybe this will help someone....

  • André Arnaud de Calavon Profile Picture
    283,862 Test role Public on at
    RE: Work flow error - Insufficient security permissions for user X

    Hi Heather,

    It should be related to security. Check if these users do have permissions on the approval menu items and also do have acces to at least read the free text invoices and journals.

  • MATTGUO Profile Picture
    22,294 on at
    RE: Work flow error - Insufficient security permissions for user X

    Hello,

    Please check if these users have the permission for the privileges of the Approve free text invoices and Approve ledger journal.

    Moved to D365 Finance forum: community.dynamics.com/.../dynamics-365-for-finance-and-operations-forum

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard >

Line 22 049b451c-4d80-ef11-ac20-7c1e520d1414

Product updates

Dynamics 365 release plans