-
Notifications
You must be signed in to change notification settings - Fork 473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gam print gal for longer works due to Google change #1715
Comments
The GAL API endpoint was never officially documented and supported afaik (the url does not exist in the developer docs you linked to). It has been turned down at this point. I'd suggest a replacement command rebuild the GAL based on Directory API and Groups APIs. Groups settings API can be used to determine if a given group should be listed in the directory/GAL or not. What was the use case of pulling this info with GAM? |
It's easy to use the Directory API to list users and get the includeInGlobalAddressList field
For groups you use the Directory API to list groups but then you have to make an additional Group Settings API call per group to get the includeInGlobalAddressList field
That's a lot of API calls if you have N thousnad groups.
----
Ross Scroggs
***@***.***
… On Oct 28, 2024, at 3:17 PM, Jay Lee ***@***.***> wrote:
The GAL API endpoint was never officially documented and supported afaik (the url does not exist in the developer docs you linked to).
It has been turned down at this point. I'd suggest a replacement command rebuild the GAL based on Directory API and Groups APIs. Groups settings API can be used to determine if a given group should be listed in the directory/GAL or not.
What was the use case of pulling this info with GAM?
—
Reply to this email directly, view it on GitHub <#1715 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYLYURLTUIH3VVFAVF3TZ52ZYNAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSG43TQMRTG4>.
You are receiving this because you authored the thread.
|
It may be possible to batch the calls and get 1000 group settings at a time.
It'd definitely help to understand the use cases for the GAL command though.
Jay
…On Mon, Oct 28, 2024, 6:28 PM Ross Scroggs ***@***.***> wrote:
It's easy to use the Directory API to list users and get the
includeInGlobalAddressList field
For groups you use the Directory API to list groups but then you have to
make an additional Group Settings API call per group to get the
includeInGlobalAddressList field
That's a lot of API calls if you have N thousnad groups.
----
Ross Scroggs
***@***.***
> On Oct 28, 2024, at 3:17 PM, Jay Lee ***@***.***> wrote:
>
>
> The GAL API endpoint was never officially documented and supported afaik
(the url does not exist in the developer docs you linked to).
>
> It has been turned down at this point. I'd suggest a replacement command
rebuild the GAL based on Directory API and Groups APIs. Groups settings API
can be used to determine if a given group should be listed in the
directory/GAL or not.
>
> What was the use case of pulling this info with GAM?
>
> —
> Reply to this email directly, view it on GitHub <
#1715 (comment)>, or
unsubscribe <
https://github.com/notifications/unsubscribe-auth/ACCTYLYURLTUIH3VVFAVF3TZ52ZYNAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSG43TQMRTG4>.
> You are receiving this because you authored the thread.
>
—
Reply to this email directly, view it on GitHub
<#1715 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABDIZMCKNUIBCRFJJ3UFJSTZ5227BAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSG44TCOJQGA>
.
You are receiving this because you were assigned.Message ID:
***@***.***>
|
People want to verify what groups are in the GAL.
----
Ross Scroggs
***@***.***
… On Oct 28, 2024, at 4:57 PM, Jay Lee ***@***.***> wrote:
It may be possible to batch the calls and get 1000 group settings at a time.
It'd definitely help to understand the use cases for the GAL command though.
Jay
On Mon, Oct 28, 2024, 6:28 PM Ross Scroggs ***@***.***> wrote:
> It's easy to use the Directory API to list users and get the
> includeInGlobalAddressList field
>
> For groups you use the Directory API to list groups but then you have to
> make an additional Group Settings API call per group to get the
> includeInGlobalAddressList field
>
> That's a lot of API calls if you have N thousnad groups.
> ----
> Ross Scroggs
> ***@***.***
>
>
>
> > On Oct 28, 2024, at 3:17 PM, Jay Lee ***@***.***> wrote:
> >
> >
> > The GAL API endpoint was never officially documented and supported afaik
> (the url does not exist in the developer docs you linked to).
> >
> > It has been turned down at this point. I'd suggest a replacement command
> rebuild the GAL based on Directory API and Groups APIs. Groups settings API
> can be used to determine if a given group should be listed in the
> directory/GAL or not.
> >
> > What was the use case of pulling this info with GAM?
> >
> > —
> > Reply to this email directly, view it on GitHub <
> #1715 (comment)>, or
> unsubscribe <
> https://github.com/notifications/unsubscribe-auth/ACCTYLYURLTUIH3VVFAVF3TZ52ZYNAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSG43TQMRTG4>.
>
> > You are receiving this because you authored the thread.
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#1715 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABDIZMCKNUIBCRFJJ3UFJSTZ5227BAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSG44TCOJQGA>
> .
> You are receiving this because you were assigned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub <#1715 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL4TDJM47X5CJCMBUD3Z53FPVAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSHA4TCNJQHE>.
You are receiving this because you authored the thread.
|
gam config batch_size 1000 print groups fields includeinglobaladdresslist
You hit query limits failrly quickly.
Ross
----
Ross Scroggs
***@***.***
… On Oct 28, 2024, at 4:57 PM, Jay Lee ***@***.***> wrote:
It may be possible to batch the calls and get 1000 group settings at a time.
It'd definitely help to understand the use cases for the GAL command though.
Jay
On Mon, Oct 28, 2024, 6:28 PM Ross Scroggs ***@***.***> wrote:
> It's easy to use the Directory API to list users and get the
> includeInGlobalAddressList field
>
> For groups you use the Directory API to list groups but then you have to
> make an additional Group Settings API call per group to get the
> includeInGlobalAddressList field
>
> That's a lot of API calls if you have N thousnad groups.
> ----
> Ross Scroggs
> ***@***.***
>
>
>
> > On Oct 28, 2024, at 3:17 PM, Jay Lee ***@***.***> wrote:
> >
> >
> > The GAL API endpoint was never officially documented and supported afaik
> (the url does not exist in the developer docs you linked to).
> >
> > It has been turned down at this point. I'd suggest a replacement command
> rebuild the GAL based on Directory API and Groups APIs. Groups settings API
> can be used to determine if a given group should be listed in the
> directory/GAL or not.
> >
> > What was the use case of pulling this info with GAM?
> >
> > —
> > Reply to this email directly, view it on GitHub <
> #1715 (comment)>, or
> unsubscribe <
> https://github.com/notifications/unsubscribe-auth/ACCTYLYURLTUIH3VVFAVF3TZ52ZYNAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSG43TQMRTG4>.
>
> > You are receiving this because you authored the thread.
> >
>
> —
> Reply to this email directly, view it on GitHub
> <#1715 (comment)>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ABDIZMCKNUIBCRFJJ3UFJSTZ5227BAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSG44TCOJQGA>
> .
> You are receiving this because you were assigned.Message ID:
> ***@***.***>
>
—
Reply to this email directly, view it on GitHub <#1715 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ACCTYL4TDJM47X5CJCMBUD3Z53FPVAVCNFSM6AAAAABQYNAXW2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBSHA4TCNJQHE>.
You are receiving this because you authored the thread.
|
gam print contacts
prints the Domain Shared Contactsgam print gal
print the Global Address ListBoth of the these commands use the Domain Shared Contacts API: https://developers.google.com/admin-sdk/domain-shared-contacts/overview
Sometime recently Google made a change and
gam print gal
returns this error:Temporary error: 612 - Contacts API is being deprecated. Migrate to People API to retain programmatic access to Google Contacts. See https://developers.google.com/people/contacts-api-migration., Backing off: 16 seconds, Retry: 4/10
gam print peopleprofile
appears to print the User GAL but there is no way as fas as I know to print the Group GALThe text was updated successfully, but these errors were encountered: