I want to know how to get the login history data using API. I have created the APP Key and also given the permission to the key but still when i am running it in ML Workbench i am getting pycelonis permission error. Can you please suggest to tackle this error.
Hi Amey,
when you saw you have given the permissions to the key you mean the steps described here I guess?
Connecting audit log, login history, and studio adoption APIs to Celonis Platform
Have you also performed the Test API with Swagger steps?
BR
Dennis
Hello Amay,
Provide the correct permission to ml workbench application. If you have taken the default app key for the ml workbench then application name would be similar to ml workbench name.
Hi Amey,
when you saw you have given the permissions to the key you mean the steps described here I guess?
Connecting audit log, login history, and studio adoption APIs to Celonis Platform
Have you also performed the Test API with Swagger steps?
BR
Dennis
I am trying below code:
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
After execution i am getting 'PyCelonisHTTPStatusError: ' Is there any way to resolve this error.
Hello Amay,
Provide the correct permission to ml workbench application. If you have taken the default app key for the ml workbench then application name would be similar to ml workbench name.
I am trying below code:
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
After execution i am getting 'PyCelonisHTTPStatusError: ' Is there any way to resolve this error.
I am trying below code:
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
After execution i am getting 'PyCelonisHTTPStatusError: ' Is there any way to resolve this error.
use Bearer instead of Appkey since you are using userkey for the authentication.
I am trying below code:
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
After execution i am getting 'PyCelonisHTTPStatusError: ' Is there any way to resolve this error.
We have given the authentication to the user. We have used the Bearer but we got the same error. We have used as below.
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"Bearer{API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
I am trying below code:
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
After execution i am getting 'PyCelonisHTTPStatusError: ' Is there any way to resolve this error.
instead of this:
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
try this :
header = {
"Content-Type": "application/json",
"Authorization": f"Bearer {API_KEY_USER}"
}
I am trying below code:
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
After execution i am getting 'PyCelonisHTTPStatusError: ' Is there any way to resolve this error.
Still we are getting the error.
I am trying below code:
API_KEY_USER = "api"
header = {
"Content-Type": "application/json",
"Authorization": f"AppKey {API_KEY_USER}"
}
url="https://YOUR-TEAM-DOMAIN.celonis.cloud/api/external/authentication-events"
b= c.client.request("GET" , url=url,headers=header)
After execution i am getting 'PyCelonisHTTPStatusError: ' Is there any way to resolve this error.
Check with the Service Desk, they might help you.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.