Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Not able to access the PDI using python script

HemantP70979324
Giga Contributor

I am using basic auth , username and password which is mentioned on the home page of manage instance but i am still not able to access servicenow Table API using python script 
It is showing 

{
    "error": {
        "message": "User is not authenticated",
        "detail": "Required to provide Auth information"
    },
    "status": "failure"
}
1 REPLY 1

Hemanth M
Tera Sage

Hi @HemantP70979324 ,

 

Don't use this primary account,

  • Please create a new user (service account) and
  • Make to select "Machine" - identity type - if this is not in the form, add to the form,
  • Provide appropriate role ex: snc_platform_rest_api_access and try

HemanthM_0-1788186796669.png

 

Hope it helps!

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026