Some question about use Get a user API

I need to use get a user api (Mattermost API Reference), I create a local mattermost server by my own email, I get the successful result when I use this api. but our company mattermost is use google to login, so there’s no login by username and password. but email and password is necessary when use this api. So is there any other way to solve this problem that I have?

   Client := model.NewAPIv4Client("https://your-mattermost-url.com")
   Client.Login("email@domain.com", "Password1")