See api-docs Menu

v1-v3 APIs have been deprecated.

Although these APIs are not shut off yet, all new development with APIs should use the newest version of our API if available, and the version /1 in all other cases. These later versions are based on RESTful principles, secured by OAuth 2.0, and provide JSON messages, search, pagination, sorting, and filtering.

Get Failed Provisionings

Resource URL

https://api.onelogin.com/api/v1/logins/
failed_provisioning.json

Parameters

start_date

string

Set to the date and time at which you want the list of failed provisionings to start. Use the following date/time format: YYYY-MM-DDThh:mm:ss-time zone designator (where -time zone designator should be set to -Z, +hh:mm, or -hh:mm). For example: 2015-01-21T09:20:15-08:00.

stop_date

string

Set to the date and time at which you want the list of failed provisionings to stop. Use the following date/time format: YYYY-MM-DDThh:mm:ss-time zone designator (where -time zone designator should be set to -Z, +hh:mm, or -hh:mm). For example: 2015-01-21T09:20:15-08:00.

Sample Response

[
   {
      "login_id":123456,
      "id":654321,
      "created_at":"2014\/09\/08 18:17:23 -0700",
      "error_description":null,
      "description":"Internal provisioning error",
      "user":{
         "email":"johanna@hui.com",
         "username":"jhui",
         "id":101010,
         "lastname":"Hui",
         "firstname":"Johanna"
      }
   },
   {
      "login_id":234567,
      "id":765432,
      "created_at":"2014\/09\/09 15:25:23 -0700",
      "error_description":"The connection timed out while provisioning to 
      https:\/\/lux.onelogin.com\/sales",
      "description":"Tanja Ono could not be reactivated in Sales App",
      "user":{
         "email":"tanja@ono.com",
         "username":"tono",
         "id":111111,
         "lastname":"Ono",
         "firstname":"Tanja"
      }
   }
]
[]

Response Fields

login_id

User’s ID in the app. For example, in one app the user’s ID may be georgia.wong@company.com, but in another it may be georgia.wong.

id

ID of the app that can be accessed by the user.

created_at

Date and time at which the failed provisioning event was created.

error_description

Description of the error that caused the failure.

description

A further description of the results of the error.

user

Provides details about the user whose provisioning failed.

email

Email of the user whose provisioning failed.

username

Username of the user whose provisioning failed.

id

ID of the user whose provisioning failed.

lastname

Last name of the user whose provisioning failed.

firstname

First name of the user whose provisioning failed.

Sample cURL Request

Be sure to replace placeholder values surrounded by { } with actual values.

curl -u {api_key}:x \
-X GET https://api.onelogin.com/api/v1/logins/failed_provisioning.json? \
start_date={start_date)&stop_date={stop_date}

Postman Collection

Run In Postman

    Clicking Run in Postman button navigates to the page where you can fork the collection to your workspace. Forking the collection into your workspace will enable you to contribute to the source collection using pull requests. You can also view the collection in a public workspace if you like and even import a copy of the collection using the links present on the screen.

Have a Question?

Found a problem or a bug? Submit a support ticket.

Looking for walkthroughs or how-to guides on OneLogin's user and admin features? Check out the documentation in our Knowledge Base.

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