Active Directory Portal Tier Authentication - ArcGIS API for Python

Idea created by boyle.matt on Dec 5, 2018
    New
    Score10
    • boyle.matt

    Please fix Portal-tier authentication with Active Directory accounts when using the ArcGIS API for Python.  I continually get the error:

    Unable to generate token.
    Invalid username or password.
    (Error Code: 400)

     

    We are trying to use AD accounts for all our user connections in Portal, and in order to get the API for Python to work, we have to roll back to using the initial admin account, instead of being able to pass through our AD accounts.

     

    Our AD accounts work for everything else: signing into Portal, Pro, and Server Manager.

     

    I am following the example shown at the link below to no avail.

     

    I am using the latest release of the API as of writing this (1.5.1)

     

    We primarily write scripts to be run through Task Scheduler, so we don't really want to use OAuth and have to run the script through Jupyter Notebooks, in order to pass through a key.

     

    Working with different authentication schemes | ArcGIS for Developers