...
Service | API | Method |
---|---|---|
urac | /admin/all | GET |
Data Model: %Link to Data Model%Models: Users, Groups
Workflow: %Link to Architecture Page%
...
Name | Source | Mandatory | Type | Special Format | Description | Body | YES | |
---|---|---|---|---|---|---|---|---|
StringN/A | N/A | N/A | N/A | N/A | This api does not need any parameters; it fetches both the users and groups of all the tenants. |
Output
...
Valid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "users":[{"..."}], "groups":[{"..."}] } } |
Invalid Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result":false, "errors":{ "codes":[400405], "details":[ { "code":400405, "message":"Problem with the provided passwordUnable to find User. Please try again." } ] } } |
Error Codes
Code | Description | 400 | Database Error
---|---|
405 | Unable to find User. Please try again. |
415 | Unable to find group. |
Example (CURL)
...
Request
Code Block | ||||
---|---|---|---|---|
| ||||
> CURL -X POSTGET http://127.0.0.1:4000/...urac/admin/all |
Response
Code Block | ||||
---|---|---|---|---|
| ||||
{ "result": true, "data": { "users": [{ "_id": "571a2a0e8cc861b98a0b9467", "locked": true, "username": "owner", "firstName": "owner", "lastName": "owner", "email": "owner@soajs.org", "ts": 1461332494711, "status": "active", "profile": {}, "groups": [ "owner" ], "config": { "packages": {}, "keys": {} }, "tenant": { "id": "57063608622c47b5c097d19b5551aca9e179c39b760f7a1a", "code": "DBTN" } }, //... ], "groups": [{ "_id": "571a2a0e8cc861b98a0b9469", "locked": true, "code": "owner", "name": "Owner Group", "description": "this is the owner group that owns the dashboard", "tenant": { "id": "5551aca9e179c39b760f7a1a", "code": "DBTN" } }, //... ] } } |