psu/client/user_list.go
2019-11-26 23:27:15 -05:00

13 lines
255 B
Go

package client
import (
"net/http"
portainer "github.com/portainer/portainer/api"
)
func (n *portainerClientImp) UserList() (users []portainer.User, err error) {
err = n.doJSONWithToken("users", http.MethodGet, http.Header{}, nil, &users)
return
}