Get basic user and group information
GET<your-unleash-url>/api/admin/user-admin/access
Get a subset of user and group information eligible even for non-admin users
Responses
- 200
- 401
usersGroupsBaseSchema
- application/json
- Schema
- Example (auto)
Schema
groups object[]
users object[]
{
"groups": [
{
"id": 1,
"name": "unleash-e2e-7095756699593281",
"userCount": 1,
"rootRole": null
}
],
"users": [
{
"id": 4,
"name": "unleash-e2e-user2-7095756699593281",
"email": "unleash-e2e-user2-7095756699593281@test.com",
"accountType": "User"
},
{
"id": 1,
"username": "admin",
"accountType": "User"
}
]
}
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-admin/access' \
-H 'Accept: application/json' \
-H 'Authorization: <Authorization>'
ResponseClear