Datasource User
Gives various information that would help in debugging issues related to a particular user. For example, it gives information about the user's permissions, groups, memberships, etc.
Sample Request
- cURL
- Python
curl -X POST https://customer-be.glean.com/api/index/v1/debug/gleantest/user
-H 'Authorization : Bearer <token>' \
-H 'Content-Type : application/json' \
-d '{
"email": "user1@example.com"
}'
from glean_indexing_api_client.api import troubleshooting_api
from glean_indexing_api_client.model.debug_user_request import DebugUserRequest
from glean_indexing_api_client.model.debug_user_response import DebugUserResponse
from pprint import pprint
# Please refer to the Getting Started page for more details on how to setup api_client
troubleshoot_api = troubleshooting_api.TroubleshootingApi(api_client)
debug_user_request = DebugUserRequest(
email="user1@example.com"
)
try:
api_response = troubleshoot_api.debug_datasource_user_post("gleantest", debug_user_request)
pprint(api_response)
except glean_indexing_api_client.ApiException as e:
print("Exception when calling TroubleshootingApi->debug_datasource_user_post: %s\n" % e)
Sample Response
{
"userStatus": {
"uploadStatus": "UPLOADED",
"uploadTime": "2024-02-08T12:00:00.000Z"
},
"groups": [
{
"id": "group1",
"name": "Engineering"
}
],
"memberships": [
{
"groupId": "group1",
"userId": "user1@example.com"
}
]
}