In this blog post we will will find the Security Role assigning to the particular user using X++ in AX 2012.
SecurityRole role;
SecurityUserRole userRole;
UserInfo userinfo;
While select role
exists join userRole
where role.RecId == userRole.SecurityRole
&& userRole.User == curUserId()
{
info(role.Name );
}
No comments:
Post a Comment
Please do not add any spam link in the comment box.