Skip to main content
GET
/
resources
/
{resource_id}
/
users
Get resource users
curl --request GET \
  --url https://api.opal.dev/v1/resources/{resource_id}/users \
  --header 'Authorization: Bearer <token>'
{
  "results": [
    {
      "full_name": "Jake Barnes",
      "user_id": "29827fb8-f2dd-4e80-9576-28e31e9934ac",
      "resource_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3",
      "expiration_date": "2022-01-23T04:56:07.000Z",
      "email": "jake@company.dev",
      "has_direct_access": true,
      "num_access_paths": 2
    },
    {
      "full_name": "Brett Ashley",
      "user_id": "7646aa9a-e2ee-4eb5-8c62-91f29038a373",
      "resource_id": "1b978423-db0a-4037-a4cf-f79c60cb67b3",
      "expiration_date": "2022-02-03T12:33:02.000Z",
      "email": "brett@company.dev",
      "has_direct_access": true,
      "num_access_paths": 3
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

resource_id
string<uuid>
required

The ID of the resource.

Query Parameters

limit
integer

Limit the number of results returned.

Response

200 - application/json

List of users with access to this resource.

next
string | null

The cursor with which to continue pagination if additional result pages exist.

Example:

"cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw"

previous
string | null

The cursor used to obtain the current result page.

Example:

"cj1sZXdwd2VycWVtY29zZnNkc2NzUWxNMEUxTXk0ME16UXpNallsTWtJ"

results
object[]