Get your own user profile
GET<your-unleash-url>/api/admin/user/profile
Detailed information about the current user root role and project membership
Responses
- 200
- 401
profileSchema
- application/json
- Schema
- Example (auto)
Schema
rootRole objectrequired
projectsstring[]required
Which projects this user is a member of
Example:
["my-projectA","my-projectB"]
subscriptionsstring[]required
Which email subscriptions this user is subscribed to
Example:
["productivity-report"]
features object[]required
{
"rootRole": {
"id": 9,
"type": "root",
"name": "Editor",
"description": "Users with the editor role have access to most features in Unleash but can not manage users and roles in the global scope. Editors will be added as project owners when creating projects and get superuser rights within the context of these projects. Users with the editor role will also get access to most permissions on the default project by default.",
"project": "default"
},
"projects": [
"my-projectA",
"my-projectB"
],
"subscriptions": [
"productivity-report"
],
"features": []
}
Authorization information is missing or invalid. Provide a valid API token as the authorization
header, e.g. authorization:*.*.my-admin-token
.
- application/json
- Schema
- Example (auto)
Schema
idstring
The ID of the error instance
Example:
9c40958a-daac-400e-98fb-3bb438567008
namestring
The name of the error kind
Example:
AuthenticationRequired
messagestring
A description of what went wrong.
Example:
You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login.
{
"id": "9c40958a-daac-400e-98fb-3bb438567008",
"name": "AuthenticationRequired",
"message": "You must log in to use Unleash. Your request had no authorization header, so we could not authorize you. Try logging in at /auth/simple/login."
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: API key needed to access this API
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L '<your-unleash-url>/api/admin/user/profile' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
ResponseClear