web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Problem using Security entry point Permissions from the Security Development Tool (invalid data container)

(0) ShareShare
ReportReport
Posted on by 340

Good day guys,

I just configured a test enviroment for the Security Development Tool. I installed the tool by using the official instructions and the tool has been intergrated with AX. I can't seem to enter the Security entry point Permissions (not in the client and not as add-in from the developer console).

When I try to enter the Security entry point Permissions I get a error message from AX stating 'Invalid Data Container'. I did some research and I found that the form 'Syssecentrypointmanager' in the AOT is causing the container problem. I was wondering if somebody could help with this. The code part with the container is below:

Syssecentrypointmanager form

public void LoadSystemUserPermissions()

{

   SecurityRole systemUserRole;

   container permissionsContainer, permission;

   int i;

   SecurableType type;

   str typeKey, securableName, securableChildName, objectKey;

   AccessRight accessRight;

   systemUserAccessRightsMap = new Map(Types::String, Types::Enum);

   select firstOnly RecId from systemUserRole where systemUserRole.AotName == 'SystemUser';

   permissionsContainer = SecurityUtil::GetRolePermissions(systemUserRole.RecId);

   for (i = 1; i <= conLen(permissionsContainer); i++)

   {

       permission = conPeek(permissionsContainer, i);

       type = conPeek(permission,2);

       typeKey = SysSecEntryPointManager::GetTypeKeyForSecurableType(type);

       securableName = conPeek(permission,1);

       securableChildName = conPeek(permission,3);

       accessRight = conPeek(permission,4);

       objectKey = strFmt('%1.%2.%3', typeKey, strLwr(securableName), strLwr(securableChildName));

       systemUserAccessRightsMap.insert(objectKey, accessRight);

   }

}

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Wessel Profile Picture
    340 on at
    RE: Problem using Security entry point Permissions from the Security Development Tool (invalid data container)

    Solved it, it was actually pretty easy. I compiled the form 'Syssecentrypointmanager' and ran a incremental CIL.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#2
AlissonGodoy Profile Picture

AlissonGodoy 2

#2
Community Member Profile Picture

Community Member 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans