Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 175888

User Security Role Info Report

$
0
0

hi all ,

I'm trying for the User Security Role Info report 

I'm partially successful so far using the article found here:

http://tech.alirazazaidi.com/list-of-user-under-certain-role-dynamics-ax-2012/

my code in job for testing , once this code will work fine , i will write same in report

static void Security_Roles(Args _args)
{
UserInfo userInfo;

SecurityUserRole securityUserRole;

SecurityRole Roles;

while select userInfo

join securityUserRole

where securityUserRole.User == userInfo.Id

join Roles

where Roles.RecId == securityUserRole.SecurityRole


{

info("userId - "+userInfo.Id);
info("UserName- "+userInfo.name);
info(strFmt("Accounttype - %1",userInfo.accountType));
info(strFmt("Security Role - %1",securityUserRole.SecurityRole));
info(SysLabel::labelId2String2(Roles.Description));

}

}

My issue :

Apart from this i want some more field in Report :

1. Duties

2. Privileges

3. Menu items linked to privileges

4. Special permissions like form classes, server methods etc

Please guide me ,any help will be greatly appreciated.

Thanks


Viewing all articles
Browse latest Browse all 175888

Trending Articles