---
title: "List resources the current user can access for a permission"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.cloudraker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List resources the current user can access for a permission

Path: CloudRaker Workspace API › Authorization

`GET /authorization/me/resources`

Discovers the resource external ids the authenticated caller holds a given `permission` on. Authorization: any authenticated organization member — scoped to the caller’s membership. Query: `permission` and `resourceType` (required); `parentResourceType` + `parentResourceExternalId` (optional) scope the search to the immediate children of that parent. Omit the parent fields to search from the organization root. Returns `{ permission, resourceType, externalIds }`. With no membership claim, returns an empty `externalIds`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `permission` (`listMyAccessibleResources.query.permission`; string, required)
  - minLength 1
- `resourceType` (`listMyAccessibleResources.query.resourceType`; string, required)
  - minLength 1
- `parentResourceType` (`listMyAccessibleResources.query.parentResourceType`; string, optional)
  - minLength 1
- `parentResourceExternalId` (`listMyAccessibleResources.query.parentResourceExternalId`; string, optional)
  - minLength 1

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.cloudraker.com/authorization/me/resources?permission=string&resourceType=string' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/authorization/me/resources?permission=string&resourceType=string';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.cloudraker.com/authorization/me/resources?permission=string&resourceType=string"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The external ids the caller may access under the permission.

#### Example

```json
{
  "permission": "string",
  "resourceType": "string",
  "externalIds": [
    "string"
  ]
}
```

- `permission` (`listMyAccessibleResources.response.200.permission`; string, required)
- `resourceType` (`listMyAccessibleResources.response.200.resourceType`; string, required)
- `externalIds` (`listMyAccessibleResources.response.200.externalIds`; array<string>, required) — External ids the caller holds `permission` on.

### 400

Validation Error

#### Example

```json
{
  "success": false,
  "error": [
    null
  ],
  "data": null
}
```

- `success` (`listMyAccessibleResources.response.400.success`; boolean, required)
  - one of `false`
- `error` (`listMyAccessibleResources.response.400.error`; array<unknown>, required)
- `data` (`listMyAccessibleResources.response.400.data`; unknown, required)


Source: https://docs.cloudraker.com/workspace/api/authorization/list-my-accessible-resources/index.md
