List of users

get

/appstore/publisher/v1/users

Fetch all the users registered with current company (partner).

Request

Query Parameters
  • Limit tells how many records to return (starting from the offset). Limit should be greater than zero and less than or equal to 100 (default=30).
  • This is a filter option used to get the result set with given name. Multiple values for this parameter is also supported. Please use comma-separated values when searching for users corresponding to multiple names.
  • Offset and limit together determine how many records to return from the collection. Offset is the starting index of the records to return, which should be greater than or equal to zero (default=0).
  • This property sorts the result set. Acceptable values are FIRSTNAME, LASTNAME, LASTMODIFICATIONDATE, ROLEID.
  • This property specifies the order in which to sort the result set. Acceptable values are ASC and DESC.
Back to Top

Response

Supported Media Types

200 Response

Successful Operation
Body ()
Root Schema : collection
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : User
Type: object
Show Source
Nested Schema : Role
Type: object
Show Source

401 Response

Not Authorized

404 Response

Entity Not Found

500 Response

System Error
Back to Top

Examples

The following example returns a list of all the users associated with a partner, by submitting a GET request on the REST resource using cURL.

cURL Example

curl -X GET -H "X-Oracle-UserId: partner-email" -H "Authorization: Bearer Access-token" "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users"

Request Header

X-Oracle-UserId: fname.lname@oracle.com
Authorization: Bearer Access-token

Request Body

None

HTTP Status Code:

200 OK

JSON Response:

{
  "items": [
    {
      "users": {
        "userId": 13021992,
        "firstName": "John",
        "lastName": "David",
        "email": "John.David@oracle.com",
        "role": {
          "roleId": 1,
          "roleName": "Partner Administrator"
        },
        "createdBy": "John David",
        "creationDate": "2018-02-09T21:32:02.000Z",
        "lastModifiedBy": "John David",
        "lastModificationDate": "2018-02-09T21:32:02.000Z"
      }
    },
    {
      "users": {
        "userId": 9483277,
        "firstName": "Sachin",
        "lastName": "Patel",
        "email": "Sachin.Patel@oracle.com",
        "role": {
          "roleId": 2,
          "roleName": "Partner Member"
        },
        "createdBy": "John David",
        "creationDate": "2018-02-09T21:32:02.000Z",
        "lastModifiedBy": "John David",
        "lastModificationDate": "2018-02-09T21:32:02.000Z"
      }
    }
  ],
  "hasMore": false,
  "count": 2,
  "totalResults": 2,
  "links": [
    {
      "rel": "CANONICAL",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users"
    },
    {
      "rel": "SELF",
      "href": "https://ocm-apis.cloud.oracle.com/appstore/publisher/v1/users"
    }
  ]
}
Back to Top