Return Users from user organisation
GEThttps://api.staging.powerapi.com/api/v1/organisations/me/users
Return Users from user organisation
Request
Query Parameters
include string
Include associations (delimited with comma). Available associations: specializations, businesses_managed, access_groups
permissions_role string
Possible values: [admin
, group_manager
, business_manager
]
Filtering per permissions role is only possible for admins, group managers can only view business managers
page int32
Page offset to fetch.
Default value:
1
per_page int32
Number of results to return per page.
Default value:
50
Responses
- 200
Return all group manager & business manager users from user organisation
- application/vnd.api+json
- Schema
- Example (auto)
Schema
data object[]required
meta objectrequired
{
"data": [
{
"id": "string",
"type": "users",
"links": {
"self": "string"
},
"attributes": {
"accepted-food-detective": true,
"allergies": "string",
"avatar": {
"url": "string"
},
"birthday": "string",
"city": "string",
"confirmed": true,
"connected-to-partoo": true,
"country": "string",
"country-code": "string",
"deleted": true,
"detected-language": {},
"email": "string",
"favourite-drink": "string",
"favourite-food": "string",
"food-detective-status": "string",
"gender": "string",
"invitation-accepted-at": "string",
"invited-at": "string",
"language": "string",
"monthly-bars-budget": 0,
"monthly-delivery-takeaway-budget": 0,
"monthly-restaurants-budget": 0,
"name": "string",
"partoo-user-id": "string",
"permissions-role": "string",
"phone": "string",
"phone-country-code": "string",
"phone-country-prefix": "string",
"post-code": "string",
"recovery-email": "string",
"region": {},
"region-code": "string",
"registered-via-oauth": true,
"reviews-count": 0,
"role": "string",
"sign-in-count": 0,
"street": "string",
"street-number": "string",
"subscription-not-terminated": true,
"unconfirmed-email": "string"
},
"relationships": {
"specializations": {
"links": {
"self": "string",
"related": "string"
}
}
}
}
],
"meta": {
"total-count": 0,
"total-pages": 0
}
}
Authorization: http
name: bearertype: httpscheme: bearerbearerFormat: JWT
- curl
- python
- go
- nodejs
- ruby
- java
- powershell
- CURL
curl -L 'https://api.staging.powerapi.com/api/v1/organisations/me/users' \
-H 'Accept: application/vnd.api+json' \
-H 'Authorization: Bearer <TOKEN>'
ResponseClear