We're Hiring!

Mattermost, Inc.

Some question about use Get a user API

I need to use get a user api (https://api.mattermost.com/#tag/users/paths/~1users~1{user_id}~1image~1default/get), 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")