【问题标题】:Dynamics AX 2009 "user group permission"Dynamics AX 2009“用户组权限”
【发布时间】:2012-05-23 10:35:57
【问题描述】:

我想准备非常快速的“用户组权限”,但这很难例如如果我想为管理添加访问权限 -> 位置查看此软件仅授予父级权限,但不授予此父级中的所有节点.我应该怎么做才能解决这个问题?

如果我要单击维度集,我需要授予此父项中的所有子项的权限。你知道我要做什么吗?

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
}

【问题讨论】:

    标签: axapta microsoft-dynamics


    【解决方案1】:

    如果您要设置安全性,则“应该”遵循一个流程,您首先要收集最终用户执行的流程,根据这些流程定义安全角色,然后设置组。我接受了 MS 合作伙伴的安全培训,我们从未对任何内容进行硬编码。管理模块中有一个安全设置区域,在这里您可以定义用户组和其中的权限,然后将用户分配到一个组,也可以从这里为单个记录设置记录级别的安全性。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多