onelogin
OneLogin API Python SDK
Decision gist · record as of 2026-08-14
Yes, if you are actively using OneLogin and need to manage identity resources programmatically. The SDK is actively maintained, has low install friction, and provides a clean Pydantic-based interface to OneLogin's API. Verify the license terms before adopting in a commercial context, and confirm that your OneLogin API credentials carry the required scopes for your use case.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.10+, Pydantic 2.11+, and valid OneLogin API credentials (Client ID and Client Secret) with appropriate scopes from the OneLogin admin portal.
- Low install friction with a pure-Python wheel.
- Actively maintained with a release 43 days ago.
License · maintenance · safety
NoLicense (unclear) — License treatment is unclear (marked 'NoLicense' with no SPDX identifier). Before adopting in a commercial or copyleft context, verify the actual license terms in the repository or contact the maintainers.
last release 2026-07-02 (43 days) · last repo commit 2026-07-02 · 40 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 166,381 downloads/mo, #10,495 on PyPI
Alternatives
Verify before relying
pip install onelogin
import os
import onelogin
configuration = onelogin.Configuration(
host="https://your-subdomain.onelogin.com",
username=os.environ["ONELOGIN_CLIENT_ID"],
password=os.environ["ONELOGIN_CLIENT_SECRET"],
)
with onelogin.ApiClient(configuration) as api_client:
token_api = onelogin.OAuth2Api(api_client)
token = token_api.generate_token({"grant_type": "client_credentials"})
configuration.access_token = token.access_token
users_api = onelogin.UsersV2Api(api_client)
users_api.list_users2()- Whether the 'NoLicense' designation reflects a missing license file, a proprietary license, or an oversight in metadata.
- Scope and rate limits of the OneLogin API itself (not documented in the SDK excerpt).
- Whether all OneLogin API endpoints are covered by the SDK or if direct HTTP calls are sometimes necessary.
What it is and what it does
The onelogin package is the official Python SDK for OneLogin's REST API. It wraps OAuth2 client-credentials authentication and provides typed API clients for managing users, roles, groups, and applications within a OneLogin tenant. The SDK uses Pydantic for request/response validation and urllib3 for HTTP transport, making it straightforward to integrate OneLogin identity operations into Python applications.
Typical usage involves creating a Configuration object with your OneLogin subdomain and API credentials, exchanging those credentials for an OAuth2 access token, and then instantiating API client objects (UsersV2Api, RolesApi, etc.) to perform CRUD operations. The SDK is actively maintained and supports current Python versions; it requires Python 3.10+ and enforces Pydantic 2.11+ to avoid validation-layer incompatibilities.
Use it for
- Automate user provisioning and deprovisioning workflows by creating, updating, or deleting users and group memberships programmatically.
- Build identity-aware applications that query OneLogin for user roles and group membership to enforce access control.
- Migrate users or configuration data between OneLogin tenants or from legacy systems into OneLogin.
- Monitor and audit OneLogin resources (users, roles, apps) by fetching and analyzing their current state.
- Integrate OneLogin authentication into CI/CD pipelines or infrastructure-as-code tools for role-based access management.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are actively using OneLogin and need to manage identity resources programmatically.
The SDK is actively maintained, has low install friction, and provides a clean Pydantic-based interface to OneLogin's API. Verify the license terms before adopting in a commercial context, and confirm that your OneLogin API credentials carry the required scopes for your use case.
Install
onelogin on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained with a release 43 days ago. Requires Python 3.10+ and Pydantic 2.11+; the Pydantic constraint is enforced and documented, reducing version-mismatch surprises.
Requires Python 3.10+, Pydantic 2.11+, and valid OneLogin API credentials (Client ID and Client Secret) with appropriate scopes from the OneLogin admin portal.
License in practice
License treatment is unclear (marked 'NoLicense' with no SPDX identifier). Before adopting in a commercial or copyleft context, verify the actual license terms in the repository or contact the maintainers.
Quickstart
pip install onelogin
import os
import onelogin
configuration = onelogin.Configuration(
host="https://your-subdomain.onelogin.com",
username=os.environ["ONELOGIN_CLIENT_ID"],
password=os.environ["ONELOGIN_CLIENT_SECRET"],
)
with onelogin.ApiClient(configuration) as api_client:
token_api = onelogin.OAuth2Api(api_client)
token = token_api.generate_token({"grant_type": "client_credentials"})
configuration.access_token = token.access_token
users_api = onelogin.UsersV2Api(api_client)
users_api.list_users2()
Verify before relying
- Whether the 'NoLicense' designation reflects a missing license file, a proprietary license, or an oversight in metadata.
- Scope and rate limits of the OneLogin API itself (not documented in the SDK excerpt).
- Whether all OneLogin API endpoints are covered by the SDK or if direct HTTP calls are sometimes necessary.
Package facts
| License | NoLicense unclear |
| Python support | Supports the current Python release >=3.10 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesurllib3python-dateutilpydanticaenumsetuptools |
| Maintenance | Actively maintained 43 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 166,381 / month, #10,495 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
Evidence: onelogin-4.0.1-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “onelogin api client”
- oneloginOfficial Python SDK for OneLogin's API, enabling programmatic…
- codewords-clientA Python client library for the Codewords API with built-in FastAPI…
- twentyc.rpcA client library for consuming 20c's RESTful API, built on top of the…
Give your agent the search over MCP, or paste the wish link into any chat.
More Internet packages
Botocore provides low-level, data-driven access to Amazon Web Services APIs, serving as the foundation for the AWS CLI and boto3 libraries.
Install it if you need programmatic access to AWS services.
Provides an async client for AWS services using botocore and aiohttp, allowing you to call AWS APIs asynchronously within asyncio-based applications.
Install it if you need to call AWS services from async Python code; it is the standard way to do so.
Pydantic validates Python data structures against type hints, coercing and checking input at runtime to ensure it matches a declared schema.
Provides a platform-independent file locking mechanism to coordinate access to files across processes and threads.
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides common Protocol Buffer message definitions used across Google Cloud APIs, enabling Python clients to interact with Google services.
See also onfido-python · openfga-sdk · coze-workload-identity · asana · python3-saml · authentik-client · oauth2-client · okta · foundry-platform-sdk · propelauth-py