title: Using google workspace admin API, how to identify slack workspace of the my org users who log into slack using company's email via Gsuite SSO?
body: <p>I am capturing the logins of my org users into slack using google workspace admin reports API as mentioned in the doc here: <a href="https://developers.google.com/admin-sdk/reports/v1/appendix/activity/saml#login_success" rel="nofollow noreferrer">https://developers.google.com/admin-sdk/reports/v1/appendix/activity/saml#login_success</a></p>
  <p>I want to identify the workspace that these users are login into. How can I identify this?</p>
  <p>Here's the sample response that I get from the reports API:</p>
  <pre><code>{
    &quot;kind&quot;: &quot;admin#reports#activities&quot;,
    &quot;etag&quot;: &quot;\&quot;SsISqFfgRYY11XaGpPyQF5FTf1EAwqUmKLMPaD85FHw/evu1UTmScwnBzMj7rPtBftM3N2k\&quot;&quot;,
    &quot;items&quot;: [
      {
        &quot;kind&quot;: &quot;admin#reports#activity&quot;,
        &quot;id&quot;: {
          &quot;time&quot;: &quot;2022-05-25T17:51:08.913Z&quot;,
          &quot;uniqueQualifier&quot;: &quot;35251594669533645&quot;,
          &quot;applicationName&quot;: &quot;token&quot;,
          &quot;customerId&quot;: &quot;C02a9qd29&quot;
        },
        &quot;etag&quot;: &quot;\&quot;SsISqFfgRYY11XaGpPyQF5FTf1EAwqUmKLMPaD85FHw/U-RQigEfldlDShA5VdJAIizlnsQ\&quot;&quot;,
        &quot;actor&quot;: {
          &quot;email&quot;: &quot;vibhu@cloudeagle.ai&quot;,
          &quot;profileId&quot;: &quot;116721330888590133060&quot;
        },
        &quot;ipAddress&quot;: &quot;18.206.76.246&quot;,
        &quot;events&quot;: [
          {
            &quot;name&quot;: &quot;authorize&quot;,
            &quot;parameters&quot;: [
              {
                &quot;name&quot;: &quot;client_id&quot;,
                &quot;value&quot;: &quot;606092904014-s1u3idjanlbhr4ns5b1hcjgfn63cr9nh.apps.googleusercontent.com&quot;
              },
              {
                &quot;name&quot;: &quot;app_name&quot;,
                &quot;value&quot;: &quot;Slack&quot;
              },
              {
                &quot;name&quot;: &quot;client_type&quot;,
                &quot;value&quot;: &quot;WEB&quot;
              },
              {
                &quot;name&quot;: &quot;scope_data&quot;,
                &quot;multiMessageValue&quot;: [
                  {
                    &quot;parameter&quot;: [
                      {
                        &quot;name&quot;: &quot;scope_name&quot;,
                        &quot;value&quot;: &quot;openid&quot;
                      },
                      {
                        &quot;name&quot;: &quot;product_bucket&quot;,
                        &quot;multiValue&quot;: [
                          &quot;IDENTITY&quot;
                        ]
                      }
                    ]
                  },
                  {
                    &quot;parameter&quot;: [
                      {
                        &quot;name&quot;: &quot;scope_name&quot;,
                        &quot;value&quot;: &quot;https://www.googleapis.com/auth/userinfo.email&quot;
                      },
                      {
                        &quot;name&quot;: &quot;product_bucket&quot;,
                        &quot;multiValue&quot;: [
                          &quot;IDENTITY&quot;
                        ]
                      }
                    ]
                  },
                  {
                    &quot;parameter&quot;: [
                      {
                        &quot;name&quot;: &quot;scope_name&quot;,
                        &quot;value&quot;: &quot;https://www.googleapis.com/auth/userinfo.profile&quot;
                      },
                      {
                        &quot;name&quot;: &quot;product_bucket&quot;,
                        &quot;multiValue&quot;: [
                          &quot;IDENTITY&quot;
                        ]
                      }
                    ]
                  }
                ]
              },
              {
                &quot;name&quot;: &quot;scope&quot;,
                &quot;multiValue&quot;: [
                  &quot;openid&quot;,
                  &quot;https://www.googleapis.com/auth/userinfo.email&quot;,
                  &quot;https://www.googleapis.com/auth/userinfo.profile&quot;
                ]
              }
            ]
          }
        ]
      },
  }
  </code></pre>
  <p>I am wondering if it is possible to identify the slack workspace from the above response or would it need other API endpoints and parameters.</p>