Updated CLI function to use API call

Updated function call to list gateway users