Showing posts with label User groups. Show all posts
Showing posts with label User groups. Show all posts

Tuesday, May 17, 2011

Getting list of all associated Goups with user in AX

static void WI_GetUserGroups(Args _args)
{
    UserGroupList  lUserGroupList;
     ;

    WHILE SELECT lUserGroupList WHERE lUserGroupList.userId == curuserid()
    {
         info(lUserGroupList.GroupId);
    }
}