Can not query projects using GroupShareKit

I am trying to get started using the GroupShareKIt  REST API to build some background utilities  Using some of the sample code on GitHub, I am able to retrieve organizations, roles, users, etc., but I can not retrieve a list of projects.  Using Trados Studio I am able to confirm that these values are correct from the same server I am connecting to for GroupShareKit,  The follwoing method does not fail, but returns no projects, even though IO can see projects from Trados Studio.  Am I missing some code or using these objectes incorrectly?

        IReadOnlyList<Sdl.Community.GroupShareKit.Models.Response.Project> allProjects;

        private async Task<int> GetAllProjectsAsync()
        {
            Sdl.Community.GroupShareKit.Clients.ProjectsRequest req = new Sdl.Community.GroupShareKit.Clients.ProjectsRequest("Test", true);
            var projects = await client.Project.GetAllProjectsForOrganization(req);

            allProjects = projects;
            return projects.Count;
        }

 I have tried "", "/", "/Test" and "Test" as the organization path to no avail.  When I retrieve all organizations, I see "/" and "/Test" in the list.

Parents Reply
  • Probably something silly missing on my side, but doesn't work for me.  My original code was in a windows forms app.  Created a trivial console app like your code and still no projects returned:

        class Program
        {
            static void Main(string[] args)
            {
                var client = GroupShareClient.AuthenticateClient(@"me",
                        "mypassword",
                        new Uri("nygroupshare01.corp.bloomberg.com"),
                        GroupShareClient.AllScopes);
    
                Sdl.Community.GroupShareKit.Clients.ProjectsRequest req = new Sdl.Community.GroupShareKit.Clients.ProjectsRequest("/Test", true);
                var projectsCount = client.Result.Project.GetAllProjectsForOrganization(req).Result.Count;
    
                Console.WriteLine(projectsCount);
    
                Console.ReadLine();
            }
        }
    
    

    I tried as "sa" and as my login.  Confirmed my account has full privilege on the Test organization. Is there some other level of permissioning that should apply?

     Here is the list of projects visible from Trados Studio:

Children