Coder Social home page Coder Social logo

Comments (3)

rdegges avatar rdegges commented on July 22, 2024

Ah! You're using the admin Org URL. You want to go to your dashboard homepage, then you'll see the Org URL value up at the top-right hand portion of your screen. That's the value you want to use in that UsersClient.

from okta-sdk-python.

Gauge73 avatar Gauge73 commented on July 22, 2024

I ran into the same issue. The initial reply seemed to be irrelevant, so I kept digging around in the module until I found what seems to be a solution. Note that I'm a Python newb, so keep that in mind. :)

The User class exists at okta.models.user.User. So, here's what I did to instantiate a user:

`import okta

client = UsersClient('https://dev-123456-admin.okta.com', 'xxxxxxxxsxxxxxxxxxxxxxxxxxxx')
user = okta.models.user.User(login='[email protected]', email='[email protected]', firstName='Fred', lastName='Flintstone')
client.create_user(user, activate=False)
`

Hope this helps.

from okta-sdk-python.

bretterer avatar bretterer commented on July 22, 2024

We have recently released a 1.x version of this SDK and all api calls and setup is different which should resolve this issue. Please check out our new version on PyPi.

We have implemented a few checks around configuration to return better error messaging around this, however @rdegges is correct, the main issue here is that you are using the org url dev-1234560-admin but should be using dev-123456 (without the -admin)

If you find that you are still having an issue, please let us know if you are still having this issue.

from okta-sdk-python.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.