Skip to main content

Notifications

Announcements

No record found.

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.

  • Suggested answer
    b_radlyjames Profile Picture
    b_radlyjames 3,081 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
    CrniBranislav 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
    André Arnaud de Cal... 291,711 Super User 2024 Season 2 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
    CrniBranislav 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
    André Arnaud de Cal... 291,711 Super User 2024 Season 2 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
    MATTGUO 22,308 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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,458 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans