Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Access denied when calling from a menuaction sysoperation based framework with different user class system administrator.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear, based on the framework sysoperation, create two classes for the model and one for the driver. Also I create the menuitem type action in which I filled out the information.

ObjectType: Class
Object: smm_mfvController
EnumTypeParameter: SysOperationExecutionMode
EnumParameter: Asyncronous

and all properties "permission" are by default "Auto" except linkedpermissionobject and linkedpermissionobjectchild that are empty.

I added a menu within SalesandMarketing and then added a menu entry calling menuaction that I generated.

In the AX security tool, I searched the menu and add the permission "full control" to a privilege. This is assigned to a role which is associated to a specific user.

When running on the menu, from system administrator user I have no problems working properly, but when trying to run from the other user, "Access Denied: smm_mfvController" appears.

What I can fail to pass this access error?

thank you

*This post is locked for comments

  • Suggested answer
    Randy33 Profile Picture
    Randy33 47 on at
    Access denied when calling from a menuaction sysoperation based framework with different user class system administrator.
    Posting what worked for me.  This was a very unusal bug.  
     
    Scenario: 
    - Had a menu item that was linked to a controller class.  The controller class inherited from SysOperationServiceController.  
    - When one particular user tried to open the menu item: 
    • In DataArea A the menu opened OK.
    • In DataArea B the menu threw error about "Access Denied: XXX Controller"
    - Other users with similar role permissions could open the menu item in both DataArea A and DataArea B OK.  
     
    Resolution steps: 
    1. Granted class methods for (only) the controller class into the user permission role.  
    - This did not resolve the issue.  
     
    2. Restarted and did a full CIL gen on each AOS service.  
    - This resolved the error in the "security entry point permission" emulator module.  
    - However, user still experienced the same error when opening the menu item in DataArea B.  
     
    3. Copied over "all" related class methods into the permission role->server methods node.  There were eight additional related classes that contained many methods.  I copied over all methods into the role.  
    - This resolved the issue.  
     
    Note: I wouldn't say step 03 resolved the bug due to lack of permissions.  Instead, the actions in step 03 may have given AX a "kick" to take a fresh look at the user (speculation).  
     
  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Access denied when calling from a menuaction sysoperation based framework with different user class system administrator.
    Finally I was researching as I am novice at this, I found I missed create a permission code to create the class. With this I could assign it to the menu and run this process there were users.

    I relied on dynamicsaxinsight.wordpress.com/.../ax-2012-access-denied-sysoperationservicecontroller

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,703 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,433 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans