from glean import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
) as g_client:

    res = g_client.indexing.people.debug(datasource="<value>", email="u1@foo.com")

    # Handle response
    print(res)
{
  "status": {
    "isActiveUser": true,
    "uploadStatus": "UPLOADED",
    "lastUploadedAt": "2021-08-06T17:58:01.000Z"
  },
  "uploadedGroups": [
    {
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

datasource
string
required

The datasource to which the user belongs

Body

application/json; charset=UTF-8

Describes the request body of the /debug/{datasource}/user API call

Response

200
application/json; charset=UTF-8
OK

Describes the response body of the /debug/{datasource}/user API call