SAP Cloud Platform Open Connectors

GET /accounts/{id}/users

GET /accounts/{id}/users

Retrieve a list of users in an account. 

Path Parameters

id
The unique identifier for an account within an organization.

Query Parameters

where
The CEQL search expression or the where clause, without the WHERE keyword, in a typical SQL query. For example, to search for accounts created on or after 'Jan 15, 2014’, the search expression will be where=createdDate >= ‘2014-01-15’. When this parameter is omitted, all accounts are returned in a paginated fashion.
offset
The record offset at which to begin the paginated results, defaults to 0
pageSize
The page size for the paginated results, defaults to 200

Response Fields

NameDescription
ID
id
The unique identifier for a user within an account. Use in any /users endpoint with an {id} variable.
Created
createdDate
The date when someone created the account.
First Name
firstName
The first name of the user.
Last Name
lastName
The last name of the user.
passwordA placeholder for the user's secure password.
Email
email
The email address of the user. The email receives all password reset emails.
Active
active
Indicates if the account is active. In the JSON response, true is active and false is inactive.
User Secret
secret
The User Secret required for API calls to SAP Cloud Platform Open Connectors APIs. You can also find your User Secret in the profile menu in SAP Cloud Platform Open Connectors.
lastLoginDateThe date that the user last logged in to SAP Cloud Platform Open Connectors, or the date that someone created the account .
fullNameThe first and last name of the user.
Org Admin/Account Admin
roles
The roles assigned to the user.

Example Request

curl -X GET \
https://api.openconnectors.us2.ext.hana.ondemand.com/elements/api-v2/accounts/156162/users?where=active%3D%true%60&offset=0&pageSize=100 \
-H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \
-H 'Content-Type: application/json' \

Example Response

[  
  {  
    "id":160255,
    "createdDate":"2017-01-18",
    "firstName":"Claude",
    "password":"secured",
    "email":"docs@cloud-elements.com",
    "active":true,
    "lastName":"Elements",
    "accountExpired":false,
    "accountLocked":false,
    "credentialsExpired":false,
    "roles":[  

    ],
    "lastLoginDate":"2018-03-07",
    "accountNonLocked":true,
    "credentialsNonExpired":true,
    "accountNonExpired":true,
    "oauthToken":"PcbSwu2YO0vBW67CgRnBe1Vb-28PAtmg49lrBOv6zKvE2fGOV.HuQOGeYkA8eA0qOX5matRgFTeRRn5qlcctYG9Te3P1rnZe9Ao58yFCmgPluf9t6N96SpuHTr9D9hnIBiq3",
    "oauthId":"768148160538653906416",
    "oauthProvider":"Google",
    "emailValid":true,
    "enabled":true,
    "fullName":"Claude Elements"
  }
]