User roles
static void userRoles(Args _args)
{
UserInfo userInfo;
SecurityUserRole securityUserRole;
SecurityRole securityRole;
str st;
;
st = ',';
while
select userInfo
join securityUserRole
where securityUserRole.User == userInfo.Id
{
securityRole = null;
select securityRole
where securityRole.RecId == securityUserRole.SecurityRole;
if (securityRole)
{
//info(securityRole.AotName);
//info(securityRole.Name);
info(strFmt("%1 , %2 , %3",userInfo.Id,securityRole.Name,securityRole.Description)); //info(securityRole.Description);
}
}
}
No comments:
Post a Comment