Skip to content

Get the current user

Request

Get the currently authenticated User

Security
bearerToken
curl -i -X GET \
  https://api-v2.dash.app/current-user \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success

Bodyapplication/json
resultanyrequired
permittedActionsArray of objectsrequired

Permitted actions which are not associated with a specific API resource instance are included here.

  • ASSETS : CREATE_ASSETS - Whether the user can create new assets
  • ASSETS : PUT_ASSETS_IN_NO_FOLDER - Whether the user can create / edit an Asset resources such that they have no value for the Folder Field
  • ASSETS : SET_ASSETS_STAGING_STATUS_LIVE - Whether the user can set Asset.lifecycleStatus.state to LIVE via the Asset Lifecycle
  • FIELDS : EDIT_FIELDS - Whether the user can create, edit and delete Field and FieldOption resources
deniedActionsWithReasonsArray of objects

Actions that are denied due to the user's account plan, along with the reason for denial.

Response
{ "result": { "type": "ACTIVE_ACCOUNT_USER", "accountId": "cfb665ca-ce35-4418-b9d5-70ee815db4bd", "id": "google-oauth2|110955770826801837334", "email": "john.smith@gmail.com", "permissions": {}, "name": "Ken Hassleback", "firstName": "Ken", "lastName": "Hassleback", "picture": "https://example.com/john-smith-picture.jpg", "hasUploadedProfilePicture": true, "lastLogin": "2021-02-16T16:21:58.640+00:00" }, "permittedActions": [ {} ], "deniedActionsWithReasons": [ {} ] }