0

My goal is to have some information about a Google Workspace organization in particular I would need:

  • main domain/domains
  • Organization name
  • Logo of the organization

And maybe other similar info.

I'm trying to use the SDK offered by google to make queries for what I need, in particular I'm using the DirectoryApi.

But it seems I can't find any resource that gives me those infos about the Google workspace of my admin account.

Directory API ref: https://developers.google.com/admin-sdk/directory/reference/rest

Thanks for help in advance.

Ken White
  • 123,280
  • 14
  • 225
  • 444

1 Answers1

0

In order to get the domain you can use the domains.list method. With this method you can also check if it is the primary domain or not.

enter image description here

For the organization name you need the customers.get method. It returns the organization's name as you can see here.

enter image description here

Now, I think there is no API to get the organization's logo. The closest thing would be the users profile picture using the users.photo.get method.

Fernando Lara
  • 2,263
  • 2
  • 4
  • 14