Get User Details
Get details of a specific user within a project by their user ID.
Endpoint
/api/v1/projects/{project_id}/users/{user_id}Method
GET
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
project_id | string | Yes | Unique ID of the project |
user_id | string | Yes | Unique ID of the user |
Headers
| Header | Required | Description |
|---|---|---|
Authorization | Yes | Bearer access token: Bearer <access_token> |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
include_permissions | boolean | No | Include user permissions (default: false) |
Required Permission
users:read
Examples
curl --request GET \
--url https://auth.roled.id/api/v1/projects/2JUSLUee46xG6iEwG8JwPc/users/2JRtk7i2aEFKpsKTNx6YWR?include_permissions=true \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJo...'Error Codes
| Code | HTTP Status | Description |
|---|---|---|
invalid_authorization_token | 401 | Missing or invalid authorization token |
insufficient_permission | 403 | Insufficient permission |
project_not_found | 404 | Project not found |
user_not_found | 404 | User not found |
system_error | 500 | Internal server error |