Get UserID or Username from LMS

I’m looking to get the UserId from our LMS (SumTotal).  Does anyone have experience writing a script to do this?