OneLogin Users API

User management

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).
Business capability
Identity & Access Management BC-620.20

Operations 14

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api/1/users List users · List users #
Ask an LLM
“Who are all the users in my OneLogin account?”
“Can I page through users and limit how many come back?”
Tell an agent
List all users.
Show page {page} of users, {limit} per page.
POST /api/1/users Create a user · Create user #
Ask an LLM
“How do I add a new employee as a user in OneLogin?”
“Can I set a user's email, name and department when creating them?”
Tell an agent
Create a user with email {email}.
Add a new user {firstname} {lastname} with username {username} and email {email}.
GET /api/1/users/{id} Get a user · Get user by ID #
Ask an LLM
“What are the details of one user?”
“Can I look up a user by their ID?”
Tell an agent
Get user {id}.
Show me the profile of user {id}.
PUT /api/1/users/{id} Update a user · Update user by ID #
Ask an LLM
“How do I change an existing user's email or phone number?”
“Can I deactivate a user by setting their status?”
Tell an agent
Update user {id} with email {email}.
Set the phone number of user {id} to {phone}.
DELETE /api/1/users/{id} Delete a user · Delete user by ID #
Ask an LLM
“How do I remove a former employee from OneLogin?”
“Can I permanently delete a user account?”
Tell an agent destructive · confirm first
Delete user {id}.
Remove the user account {id} from the directory.
GET /api/1/users/{id}/apps List apps a user has access to · Get apps for a user #
Ask an LLM
“Which applications is a given user provisioned into?”
“What apps does a user have access to?”
Tell an agent
List the apps user {id} has access to.
Show which applications user {id} is provisioned into.
GET /api/1/users/{id}/roles List roles assigned to a user · Get roles for a user #
Ask an LLM
“What roles has a user been given?”
“Which role IDs are assigned to a user?”
Tell an agent
List the roles assigned to user {id}.
Show the role IDs for user {id}.
POST /api/1/users/{id}/roles Assign a role to a user · Assign role to user #
Ask an LLM
“How do I give a user a new role?”
“Can I add a role to an existing user?”
Tell an agent
Assign a role to user {id}.
Give user {id} a new role.
DELETE /api/1/users/{id}/roles/{role_id} Remove a role from a user · Remove role from user #
Ask an LLM
“How do I take a role away from a user?”
“Can I revoke a single role from a user?”
Tell an agent destructive · confirm first
Remove role {role_id} from user {id}.
Revoke role {role_id} for user {id}.
PUT /api/1/users/{id}/password Set a user's password · Set user password #
Ask an LLM
“How do I reset a user's password?”
“Can I set a new password for a user?”
Tell an agent
Set the password for user {id}.
Reset user {id}'s password.
PUT /api/1/users/{id}/custom_attributes Set a custom attribute on a user · Set custom attribute #
Ask an LLM
“How do I store a custom field value on a user?”
“Can I set a custom attribute on a user record?”
Tell an agent
Set a custom attribute on user {id}.
Store a custom field value for user {id}.
PUT /api/1/users/{id}/state Set a user's state · Set user state #
Ask an LLM
“How do I suspend or reactivate a user?”
“Can I change a user's state to locked or unlocked?”
Tell an agent
Set the state of user {id}.
Change user {id}'s state.
POST /api/1/users/{id}/logout Log a user out of all sessions · Log user out #
Ask an LLM
“How do I force a user to log out of every session?”
“Can I end all of a user's active sessions?”
Tell an agent destructive · confirm first
Log user {id} out of all sessions.
Force user {id} to log out.
POST /api/1/users/{id}/lock Lock a user account · Lock user account #
Ask an LLM
“How do I lock a user's account so they can't sign in?”
“Can I lock a user account without deleting it?”
Tell an agent destructive · confirm first
Lock user {id}.
Lock the account of user {id} so they can't log in.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/onelogin:onelogin-users-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

onelogin-users-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: OneLogin Users API
  description: OneLogin REST API for identity and access management. Provides programmatic access to users, roles, apps, MFA, branding, connectors, reports, SAML assertions, smart hooks, and Vigilance AI. Authentication is handled via OAuth 2.0 bearer tokens.
  version: '1.0'
  contact:
    name: OneLogin Developers
    url: https://developers.onelogin.com
  license:
    name: OneLogin Terms of Service
    url: https://www.onelogin.com/legal/terms
servers:
- url: https://{subdomain}.onelogin.com
  description: OneLogin tenant subdomain
  variables:
    subdomain:
      default: api
      description: Your OneLogin subdomain
security:
- bearerAuth: []
tags:
- name: Users
  description: User management
paths:
  /api/1/users:
    get:
      tags:
      - Users
      summary: List users
      operationId: listUsers
      parameters:
      - name: limit
        in: query
        schema:
          type: integer
      - name: page
        in: query
        schema:
          type: integer
      responses:
        '200':
          description: List of users
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/User'
    post:
      tags:
      - Users
      summary: Create user
      operationId: createUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/User'
      responses:
        '201':
          description: User created
  /api/1/users/{id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    get:
      tags:
      - Users
      summary: Get user by ID
      operationId: getUser
      responses:
        '200':
          description: User details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/User'
    put:
      tags:
      - Users
      summary: Update user by ID
      operationId: updateUser
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/User'
      responses:
        '200':
          description: User updated
    delete:
      tags:
      - Users
      summary: Delete user by ID
      operationId: deleteUser
      responses:
        '204':
          description: User deleted
  /api/1/users/{id}/apps:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    get:
      tags:
      - Users
      summary: Get apps for a user
      operationId: getUserApps
      responses:
        '200':
          description: Apps assigned to user
  /api/1/users/{id}/roles:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    get:
      tags:
      - Users
      summary: Get roles for a user
      operationId: getUserRoles
      responses:
        '200':
          description: Roles assigned to user
    post:
      tags:
      - Users
      summary: Assign role to user
      operationId: assignUserRole
      responses:
        '200':
          description: Role assigned
  /api/1/users/{id}/roles/{role_id}:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    - name: role_id
      in: path
      required: true
      schema:
        type: integer
    delete:
      tags:
      - Users
      summary: Remove role from user
      operationId: removeUserRole
      responses:
        '204':
          description: Role removed
  /api/1/users/{id}/password:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    put:
      tags:
      - Users
      summary: Set user password
      operationId: setUserPassword
      responses:
        '200':
          description: Password set
  /api/1/users/{id}/custom_attributes:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    put:
      tags:
      - Users
      summary: Set custom attribute
      operationId: setUserCustomAttribute
      responses:
        '200':
          description: Custom attribute set
  /api/1/users/{id}/state:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    put:
      tags:
      - Users
      summary: Set user state
      operationId: setUserState
      responses:
        '200':
          description: State updated
  /api/1/users/{id}/logout:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    post:
      tags:
      - Users
      summary: Log user out
      operationId: logoutUser
      responses:
        '200':
          description: User logged out
  /api/1/users/{id}/lock:
    parameters:
    - name: id
      in: path
      required: true
      schema:
        type: integer
    post:
      tags:
      - Users
      summary: Lock user account
      operationId: lockUser
      responses:
        '200':
          description: Account locked
components:
  schemas:
    User:
      type: object
      properties:
        id:
          type: integer
        email:
          type: string
        username:
          type: string
        firstname:
          type: string
        lastname:
          type: string
        title:
          type: string
        department:
          type: string
        company:
          type: string
        phone:
          type: string
        status:
          type: integer
        state:
          type: integer
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT