int portalId = 1;
UserInfo user = UserController.GetUserById(portalid, UserID);
You can get the list of roles for a user in a specific portal using array: user.Roles or you can check if the user is in a specific role using: user.IsInRole(roleName).