Articles in this section

Users API endpoints

download.svg​​ Download Postman collection

Users API endpoints

Relative URI

Method

Success code

Description

/ashares

GET

200

Retrieves the list of all users from your account along with their access level and other attributes.

/ashares/<id>

GET

200

Retrieves a specific user.

PUT

204

Update a specific user’s account.

DELETE

204

Deletes a specific user.

/ashares/<id>/disable

PUT

204

Disables or enables a specific user’s account.

/invite

POST

201

Invite a user to the account.

/invite/multiple

POST

201

Invite multiple users to an account.

/ashares/<id>/reinvite

PUT

204

Reshare the account access to a user.

/ssoclients/<id>

PATCH

204

Update a specific part of a user's SSO client.

There is one SSO client field you can update using a PATCH. You must use the provided format to update the field:

[
    {
        "op": "replace",
        "path": "/fieldname",
        "value": "newvalue"
    }
]

Field

Data type

disabled

boolean

Users API examples

Get Users

GET /v1/ashares HTTP/1.1
Host: api.integrator.io
Authorization: Bearer my_api_token

Sample response

[

 {
      "_id":"554••••••••••••••••••00d",
      "accepted":true,
      "accessLevel":"manage",
      "integrationAccessLevel":
      [
          {
            "_integrationId":"554••••••••••••••••••00d8",
            "accessLevel":"manage"
         },
      ],
      "accountSSORequired":false,
      "lastModified":"2022-01-18T22:50:37.665Z",
      "sharedWithUser":{
         "_id":"554••••••••••••••••••00dj",
         "email":"youremail@domain.com",
         "name":"John Smith",
         "allowedToResetMFA":false,
         "accountSSOLinked":"not_linked"
   }

]

Disable or enable a user

This endpoint will enable or disable a user based on their current status in the platform. If a user is disabled, using this endpoint will automatically enable them (regardless of the endpoint name "disabled").

PUT /v1/ashares/63•••••••••••••••••••/disable HTTP/1.1
Host: api.integrator.io
Authorization: Bearer my_api_token

Edit user

You cannot change the email address

PUT /v1/ashares/63•••••••••••••••••••9 HTTP/1.1
Host: api.integrator.io
Authorization: Bearer my_api_token

Sample request

{
"_id": "k3os•••••••••••••••••••23k,
"email": "email@email.com",
"accessLevel": "administrator",
"accountMFARequired": false,
...}

Invite user

POST /v1/invite HTTP/1.1
Host: api.integrator.io
Authorization: Bearer my_api_token

Sample request

{   
"email": "user@user.com",   
"accessLevel": "administrator",
"integrationAccessLevel": [],   
"accountSSORequired": false,   
"accountMFARequired": true
}

Invite multiple users

POST /v1/invite/multiple HTTP/1.1
Host: api.integrator.io
Authorization: Bearer my_api_token

Sample request

{   
"emails": [
       "email@email.com",
       "test@test.com"  
],   
"accessLevel": "administrator",
"integrationAccessLevel": [],   
"accountSSORequired": false,   
"accountMFARequired": true
}

Get a specific user

GET /v1/ashares/64••••••••••••••••••cf8 HTTP/1.1
Host: api.integrator.io
Authorization: Bearer my_api_token

Sample response

{
    "_id":"64••••••••••••••••••cf8",
    "email":"email@email.com",
    "accessLevel":"administrator",
    "integrationAccessLevel":[],
    "accountSSORequired":false,
    "accountMFARequired":false
    }
    
Was this article helpful?
0 out of 0 found this helpful

Comments

3 comments
Date Votes
  • If you are doing this in postman, it should look like this:

    GET https://api.integrator.io/v1/ashares

    0
  • One change here:

    To invite a user, use:
    POST /v1/invite/multiple

    {
       "emails": [
           "email@email.com"
       ],
       "accessLevel": "administrator",
       "integrationAccessLevel": [],
       "accountSSORequired": false,
       "accountMFARequired": true
    }

    0
  • Example of how to add “administrator” access
    {
      "emails": [
          "test.user+postman1@celigo.com",
          "test+postman1@celigo.com"
      ],
      "accessLevel":"administrator",
      "integrationAccessLevel": [],
      "accountSSORequired": false,
      "accountMFARequired": false
    }

     

    Example of how to add “manage all" access
    {
      "emails": [
          "test.user+postman1@celigo.com",
          "test+postman1@celigo.com"
      ],
      "accessLevel":"manage",
      "integrationAccessLevel": [],
      "accountSSORequired": false,
      "accountMFARequired": false
    }

     

    Example of how to add “monitor all” access
    {
      "emails": [
          "test.user+postman1@celigo.com",
          "test+postman1@celigo.com"
      ],
      "accessLevel":"monitor",
      "integrationAccessLevel": [],
      "accountSSORequired": false,
      "accountMFARequired": false
    }

     

    Example of how to add access to different integrations with different access levels
    {
      "emails": [
          "test.user+postman1@celigo.com",
          "test+postman1@celigo.com"
      ],
      "integrationAccessLevel": [{
               "_integrationId": "633b555dcd761b0d253e2d37",
               "accessLevel": "manage"
           },
           {
               "_integrationId": "5f7e39a76bb8d813180a9549",
               "accessLevel": "manage"
           },
           {
               "_integrationId": "62cc7f74a66385205e6563ec",
               "accessLevel": "monitor"
           }],
      "accountSSORequired": false,
      "accountMFARequired": false
    }

     

     

    Video demo of adding users

    0

Please sign in to leave a comment.