POST
/
api
/
index
/
v1
/
bulkindexusers
from glean.api_client import Glean
import os


with Glean(
    api_token=os.getenv("GLEAN_API_TOKEN", ""),
    instance=os.getenv("GLEAN_INSTANCE", ""),
) as glean:

    glean.indexing.permissions.bulk_index_users(upload_id="<id>", datasource="<value>", users=[
        {
            "email": "Ivory_Cummerata@hotmail.com",
            "name": "<value>",
        },
    ])

    # Use the SDK ...

Authorizations

Authorization
string
header
required

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

Body

application/json

Describes the request body for the /bulkindexusers API call

Response

200

OK