Skip to main content
GET
/
resources
/
{resource_id}
/
users
/
{user_id}
Get resource user
curl --request GET \
  --url https://api.opal.dev/v1/resources/{resource_id}/users/{user_id} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "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"
    }
  ],
  "cursor": "cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw",
  "total_count": 120
}

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.

user_id
string<uuid>
required

The ID of the user.

Query Parameters

cursor
string

The pagination cursor value.

Response

List of ResourceUser records for the user's access to the resource.

data
object[]
required
cursor
string

Pagination cursor for the next page of results

Example:

"cD0yMDIxLTAxLTA2KzAzJTNBMjQlM0E1My40MzQzMjYlMkIwMCUzQTAw"

total_count
integer

Total number of results

Example:

120