See api-docs Menu

Dev Overview of API /1

Welcome to the latest version of the OneLogin Cloud Directory API: version/1. All new development should use this version of the API.

API version /1 is based on RESTful principles, is secured by OAuth 2.0, and provides JSON messages, search, pagination, sorting, and filtering.

Users

User Resource

Get Users

Get User by ID

Get Apps for a User

Get Roles Assigned to a User

Get Custom Attribute Fields

Create User

Delegate Authentication

Create Session Login Token

Session Via API Token

Verify Factor

Update User

Assign Roles to a User

Remove Roles for a User

Set Password Using Cleartext

Set Password Using SHA-256

Set Custom Attribute Values for a User

Log User Out

Lock User Account

Delete User

OAuth 2.0 Tokens

Generate Tokens

Refresh Tokens

Revoke Tokens

Get Rate Limit

SAML Assertions

Generate SAML Assertion

Verify Factor

Roles

Get Roles

Get Role by ID

Events

Event Resource and Types

Get Events

Get Event by ID

Create Event

Groups

Get Groups

Get Group by ID

Invites

Generate Invite Link

Send Invite Link

Embed Apps

Embed Apps

Have a Question?

Have a how-to question? Seeing a weird error? Ask us about it on StackOverflow.

Found a bug? Submit a support ticket.

Have a product idea or request? Share it with us in our Ideas Portal.

StackOverflow discussions about "[onelogin] api"

  • 5
    Votes

    A: OneLogin REST API with PowerShell's Invoke-RestMethod

    Answered Sep 05 2016

    saved to `$global:helpme" break } Then, wrap all of your Invoke-RestMethod calls in a try Catch block like this. try { $e = Invoke-WebRequest 'https://api.us.onelogin.com/api/1/users/$id … , as you found in fiddler. With those two changes, here's my request and the response $Splat = @{ Method = 'PUT' Uri = 'https://api.us.onelogin.com/api/1/users/27697924/add_roles …

  • 4
    Votes

    Q: AWS API credentials with OneLogin SAML and MFA

    Asked Oct 30 2016

    to fully re-authenticate to OneLogin (including MFA) every 60 minutes as the AWS temporary credentials expire. I think that won't fly - our users are accustomed to permanent API credentials tied … We want to allow our users to retrieve a set of temporary CLI credentials for a given AWS role by signing in to OneLogin with password and MFA. We have a working solution, but it requires the user …

  • 2
    Votes
    2
    Answers

    Q: OneLogin REST API with PowerShell's Invoke-RestMethod

    Asked Sep 04 2016

    I'm working against the OneLogin REST API and can't seem to get any calls with a PUT method working. When I test in Postman, I can pass a raw JSON body like this: { "role_id_array … ": [ 115028 ] } to the endpoint: https://api.us.onelogin.com/api/1/users//add_roles This works just fine. However, when I attempt to do the same with PowerShell's …

  • 2
    Votes
    3
    Answers

    Q: Can I use OneLogin API to generate SAML assertions in a standalone app?

    Asked Aug 16 2016

    this? OneLogin people, can you add an API credential type for calling only the SAML Assertion APIs? Or you could just make the API open. (Note that AWS's "AssumeRoleWithSAML" API doesn't require user … I want to use OneLogin to write a command-line program that takes a username/password and generates a SAML assertion that can be used to authenticate to other sites. The problem is that calling …

  • 2
    Votes
    1
    Answers

    Q: OneLogin session_via_api_token and Chrome

    Asked Nov 14 2016

    I am getting a session token via an ajax call. This in turn calls the API method https://api.us.onelogin.com/api/1/login/auth $.post("onelogin.ashx?action=sessiontoken", data, function (s …

Loading...