<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Splunk Add-on for Google Workspace giving 400 Error in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Google-Workspace-giving-400-Error/m-p/740859#M117766</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308222"&gt;@cbyrd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given that the 400 error is coming from the Google API, I'd start off by checking for config issues on the Google side.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Check API Permissions:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Ensure that the Google Workspace service account you're using has the necessary permissions to access user data. The service account should have the "Directory API" enabled and the appropriate scopes granted, such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.googleapis.com/auth/admin.directory.user.readonly" target="_blank" rel="noopener"&gt;https://www.googleapis.com/auth/admin.directory.user.readonly&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Verify API Scopes:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Double-check that the OAuth 2.0 scopes configured for the service account include the necessary permissions. You might need to add or adjust scopes in the Google Cloud Console.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Customer ID:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Ensure that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;customer&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter in the API request is correct. It should be the unique ID of your Google Workspace account. You can find this ID in the Admin console under Account settings.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;View Type:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;viewType&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter can be either&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;admin_view&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;domain_public. Make sure that the view type you are using is appropriate for your use case and that the account has the necessary permissions to access the data with that view type.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;API Quotas and Limits:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Check if you are hitting any API quotas or limits. Google APIs have usage limits, and exceeding them can result in errors.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
    <pubDate>Tue, 04 Mar 2025 22:07:59 GMT</pubDate>
    <dc:creator>livehybrid</dc:creator>
    <dc:date>2025-03-04T22:07:59Z</dc:date>
    <item>
      <title>Splunk Add-on for Google Workspace giving 400 Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Google-Workspace-giving-400-Error/m-p/740837#M117764</link>
      <description>&lt;DIV class=""&gt;We are using the Splunk Add-On for GWS Version3.0.3 for Splunk Cloud and receiving this error when attempting to pull in the (user) identities portion. I have tried both 'admin_view' and 'domain_public' in the Inputs config with same error. All other functions are working fine. I need to bring in this sourcetype "gws_users_identity" to populate our identities lookup. Has anyone else encountered this? Maybe you found a "fix"?&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;ERROR pid=&amp;lt;redacted&amp;gt; tid=MainThread file=log.py:log_exception:351 | exc_l="User Identity Error" Exception raised while ingesting data for users: &amp;lt;HttpError 400 when requesting&amp;nbsp;https[:]//admin.googleapis.com/admin/directory/v1/users?customer=&amp;lt;redacted&amp;gt;&amp;amp;orderBy=email&amp;amp;maxResults=500&amp;amp;viewType=domain_public&amp;amp;alt=json returned "Bad Request". Details: "[{'message': 'Bad Request', 'domain': 'global', 'reason': 'badRequest'}]"&amp;gt;. Traceback (most recent call last): File "/opt/splunk/etc/apps/Splunk_TA_Google_Workspace/bin/gws_user_identity.py", line 139, in stream_events service.users()&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Mar 2025 20:39:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Google-Workspace-giving-400-Error/m-p/740837#M117764</guid>
      <dc:creator>cbyrd</dc:creator>
      <dc:date>2025-03-04T20:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Add-on for Google Workspace giving 400 Error</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Google-Workspace-giving-400-Error/m-p/740859#M117766</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/308222"&gt;@cbyrd&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Given that the 400 error is coming from the Google API, I'd start off by checking for config issues on the Google side.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;Check API Permissions:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Ensure that the Google Workspace service account you're using has the necessary permissions to access user data. The service account should have the "Directory API" enabled and the appropriate scopes granted, such as&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://www.googleapis.com/auth/admin.directory.user.readonly" target="_blank" rel="noopener"&gt;https://www.googleapis.com/auth/admin.directory.user.readonly&lt;/A&gt;.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Verify API Scopes:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Double-check that the OAuth 2.0 scopes configured for the service account include the necessary permissions. You might need to add or adjust scopes in the Google Cloud Console.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Customer ID:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Ensure that the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;customer&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter in the API request is correct. It should be the unique ID of your Google Workspace account. You can find this ID in the Admin console under Account settings.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;View Type:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;viewType&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;parameter can be either&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;admin_view&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;domain_public. Make sure that the view type you are using is appropriate for your use case and that the account has the necessary permissions to access the data with that view type.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;API Quotas and Limits:&lt;/STRONG&gt;&lt;UL&gt;&lt;LI&gt;Check if you are hitting any API quotas or limits. Google APIs have usage limits, and exceeding them can result in errors.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Please let me know how you get on and consider adding karma to this or any other answer if it has helped.&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Will&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 22:07:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Splunk-Add-on-for-Google-Workspace-giving-400-Error/m-p/740859#M117766</guid>
      <dc:creator>livehybrid</dc:creator>
      <dc:date>2025-03-04T22:07:59Z</dc:date>
    </item>
  </channel>
</rss>

