English 中文(简体)
动态 AX 2009 “用户团体许可”
原标题:Dynamics AX 2009 "user group permission"

我想准备非常快速的“用户群许可”, 但是这非常困难, 例如如果我想添加行政 - & gt; 位置视图的访问权限, 这个软件只允许父/ 父/ 父/ 父/ 父( 父/ 母), 而不是所有节点 。 我该怎么做来解决这个问题?

""https://i.sstatic.net/t6sxm.jpg" alt="此处输入图像描述"/ >

如果我要点击尺寸设置, 我需要允许这个父母的每个孩子。 你知道我必须做什么吗?

public void MCOVgrantFullAccess(SecurityKeySet _startSecurityKeySet = null)
{
    //klasa systemowa dictionary http://msdn.microsoft.com/en-us/library/aa600103(v=ax.50).aspx
    Dictionary          dictionary = new Dictionary();

    DictSecurityKey     dictSecurityKey;
    int i;


    if (_startSecurityKeySet)
        securitySet = _startSecurityKeySet;
    else
        securitySet = SysSecurity::constructSecurityKeySet();


    // securityKeyCnt() An integer that indicates the number of security keys. http://msdn.microsoft.com/en-us/library/aa600103(v=ax.50).aspx
    // i = 365
    for (i=dictionary.securityKeyCnt(); i; i--)
    {
        dictSecurityKey = new DictSecurityKey(dictionary.securityKeyCnt2Id(1));
        if (!dictSecurityKey.parentSecurityKeyId())
        {
            securitySet.access(dictSecurityKey.id(), AccessType::Delete);
        }
    }
    SysSecurityFormSetup::delete(userGroupId, domainId); //Delete setup of form controls
    formSetupMap = new Map(Types::String, Types::Class); //Clear cache
}
问题回答

如果您正在建立安全, 需要遵循一个程序, 首先是收集终端用户的流程, 根据这些流程界定安全作用, 然后建立小组。 我接受过MS 伙伴的安保培训, 我们从未硬码过任何东西 。 管理模块中有一个设定的安全区域, 您可以在此定义用户群, 内部权限, 然后将用户指派给一个小组, 也可以从这里建立个人记录的记录安全级别 。





相关问题
Axapta: Programmatically switch records in a form

In Dynamics AX 2009, how do you programmatically change to a different record in a form? My form contains a treeview and a group of bound data fields. When clicking on a record in the tree (the data ...

Dynamics AX 2009 - Duplicate IDs

We are in the process of merging projects from different AX Servers into source control on the same AX server. However, a few object IDs are common between projects, so Dynamics throws an error when ...

How to show a row total amount by group CG Group in Report

I am using Axapta 3.0 with language X++. I am making a report based on available report. The new report only shows a total row by group CG Group instead of showing all detail row as old report. Exam:...

Axapta: Form lifecycle question

I am attempting to manually populate an image icon into a window nested in a grid. In the run event, the fields don t appear to have values yet. The string control always returns an empty value. Is ...

How to reference a report datasource table using x++

I m unable to find the proper syntax for referencing the CustInvoiceTrans table of the SalesInvoice report datasource. Here s the context: I ve created a new classification field on the ...

axapta thread / animation

i have a function which costs plenty of time. this function is an sql-query called via odbc - not written in x++, since the functional range is insufficient. while this operation is running, I want ...

Axapta Validation Class

I ve written a method to handle regex validation in AX2009. Problem is that it always returns false, no matter what the expression or input string. Returns no errors, just false Mind taking a ...

ERP What to read/practice?

I had been learning ERP applications this summer during internship. As I am a programmer about to graduate, I want to have a solid software branch that would get me through till I am sure about what ...

热门标签