I am a site admin and trying to use the REST API to retrieve a list of projects. In the UI I am able to see and manipulate all projects/items. The REST API always returns 0 projects.
var jira = Jira.CreateRestClient("[App URL]", "[username]", "[password]", new JiraRestClientSettings() { EnableRequestTrace = true });
var yyy=jira.Projects.GetProjectsAsync().Result.ToList();
var response1 = jira.RestClient.ExecuteRequestAsync(RestSharp.Method.GET, $"/rest/api/3/project/search").Result;
var response2 = jira.RestClient.ExecuteRequestAsync(RestSharp.Method.GET, $"rest/api/2/project?expand=id,title&recent=10&includeArchived=true&browseArchive=true").Result;
I have tried the 3 ways above and all return successful but have no projects listed. I assume this is a permission issue but can not find what permission I might be missing. Since I am a Site Admin, I should have everything.