"github.com/ctreminiom/go-atlassian/jira/v3"
token = os.Getenv("TOKEN")
jiraCloud, err := v3.New(nil, host)
jiraCloud.Auth.SetBasicAuth(mail, token)
jiraCloud.Auth.SetUserAgent("curl/7.54.0")
applicationRoles, response, err := jiraCloud.Role.Gets(context.Background())
log.Println("Response HTTP Response", response.Bytes.String())
log.Println("Response HTTP Code", response.Code)
log.Println("HTTP Endpoint Used", response.Endpoint)
for _, applicationRole := range applicationRoles {
log.Printf("Application Role Name: %v", applicationRole.Name)
log.Printf("Application Role Key: %v", applicationRole.Key)
log.Printf("Application Role User Count: %v", applicationRole.UserCount)