GET
/v1/users/me/permissionsRetrieves the authenticated user's authorization principal including all permissions, roles, and organization memberships. Use this endpoint to understand what actions the user can perform and which resources they can access. Returns a Principal object with complete authorization context. Requires user authentication.
Response Data
Fields returned in the response
| Name | Type | Required | Description |
|---|---|---|---|
denies | Required | - | |
directAssignments | Required | - | |
memberships | Required | - | |
userId | UserId | Required | - |
GET
/v1/users/me/permissionsRequest
curl https://api.thesweetspot.com/v1/users/me/permissions \
-H "Content-Type: application/json"Response
{
"denies": [
{
"capsOrPacks": null,
"target": null,
"validFrom": null
}
],
"directAssignments": [
{
"caps": null,
"packs": null,
"target": null,
"validFrom": null
}
],
"memberships": [
{
"role": null,
"scope": null
}
],
"userId": 0
}