I'm building an application in Java for getting all the GCP projects and all the resources under the projects of an organization. I saw one option to get all the projects under an organization using resource manager, when I hit through REST API like as shown below
https://cloud.google.com/resource-manager/reference/rest/v1/projects/list
I am able to see all the projects under the organization but when I try the same via java gcp library I am getting only the provided service account project details and not the full organizational projects.
Can someone please help me on this