curl --request POST \
  --url https://{domain}-be.glean.com/api/index/v1/getusercount \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "datasource": "<string>"
}'
{
  "userCount": 123
}

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 of the /getusercount API call

datasource
string
required

Datasource name for which user count is needed.

Response

200
application/json
OK

Describes the response body of the /getusercount API call

userCount
integer

Number of users corresponding to the specified custom datasource.