---
title: "List the current user’s effective permissions on a resource"
---

> 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 the current user’s effective permissions on a resource

Path: CloudRaker Workspace API › Authorization

`GET /authorization/me/permissions`

Returns the authenticated caller’s effective (role-derived and inherited) permission set on a single resource. Authorization: any authenticated organization member — scoped to the caller’s membership. Query: `resourceType` and `resourceExternalId` (both required). Returns `{ permissions }` (the permission strings the caller effectively holds on that resource). With no membership claim, returns `{ permissions: [] }`.

## Authentication

- `bearerAuth`, http, header `Authorization`

## Query parameters

- `resourceType` (`listMyPermissions.query.resourceType`; string, required)
  - minLength 1
- `resourceExternalId` (`listMyPermissions.query.resourceExternalId`; string, required)
  - minLength 1

## Code samples

### cURL

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

### TypeScript

```typescript
const url = 'https://api.cloudraker.com/authorization/me/permissions?resourceType=string&resourceExternalId=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/permissions?resourceType=string&resourceExternalId=string"

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

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

print(response.text)
```

## Responses

### 200

The caller’s effective permissions on the resource.

#### Example

```json
{
  "permissions": [
    "space:read",
    "space:contribute"
  ]
}
```

- `permissions` (`listMyPermissions.response.200.permissions`; array<string>, required) — Permission strings the caller effectively holds, role-derived and inherited.
  - example `["space:read","space:contribute"]`

### 400

Validation Error

#### Example

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

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


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