Dynamics AX 2009的“用户组权限" [英] Dynamics AX 2009 "user group permission"

查看:158
本文介绍了Dynamics AX 2009的“用户组权限"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I would like to prepare very fast "user group permission" but this is very difficult for example If I would like to add access for Administration ->Location View this software give only permission for parent but not for all nodes in this parent. What should I do to fix this problem?

如果我要单击维度集,则需要对该父级中的所有子级都具有权限.你知道我该怎么办吗?

If I will click Dimension sets I need make permission to all child in this parent. Do you know what I have to do?

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合作伙伴的安全培训,我们从未对任何内容进行硬编码. 管理"模块中有一个用于安全的设置区域,您可以在其中定义用户组和其中的权限,然后将用户分配给组,还可以在此处为单个记录设置记录级别的安全性.

If you are setting up security there is a process which 'should' be followed, you start with gathering processes end-users carry out, define the security roles based on these processes and then set up the groups. I have been trained by MS Partners in security and we never hard-coded anything. There is a set area for security in the Administration module, in here you can define user groups and the permissions within, then assign users to a group, can also set up record level security from here for individual records.

这篇关于Dynamics AX 2009的“用户组权限"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆