Hi ,
If you want to do this using X++ try below code to find Security roles for current user
static void Job206(Args _args)
{
SecurityRole role;
SecurityUserRole userRole;
UserInfo userInfo;
;
while select role
exists join userRole
where role.RecId == userRole.SecurityRole
&& userRole.User == curUserId()
{
info(strFmt("%1 - %2", role.Name,curUserId()));
}
}