Get all user permissions from a company

GET /company/companies/@id/permissions/users

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int The ID of the company you want the permissions from

Example request 1

GET /company/companies/15/permissions/users HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5

Response

Array of UserPermission: [UserPermission]

UserPermission

Field Type Description
shop_ids [Int] User has access to these shops
permissions Dictionary A dictionary with fields
id Int Id of the permissions entry
user Dictionary A dictionary with fields

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 1788

[
    {
        "shop_ids": [
            19,
            17,
            19
        ],
        "permissions": {
            "company_info": true,
            "holidays": false,
            "newsletters": true,
            "translations": false,
            "permissions": false,
            "email_settings": false,
            "products": false,
            "shop_info": false,
            "checkout_settings": false,
            "time_settings": true,
            "discounts": false
        },
        "id": 13,
        "user": {
            "id": 14,
            "email": "..."
        }
    },
    {
        "shop_ids": [
            19,
            13,
            14
        ],
        "permissions": {
            "company_info": false,
            "holidays": true,
            "newsletters": false,
            "translations": true,
            "permissions": true,
            "email_settings": false,
            "products": true,
            "shop_info": false,
            "checkout_settings": false,
            "time_settings": true,
            "discounts": true
        },
        "id": 16,
        "user": {
            "id": 13,
            "email": "..."
        }
    },
    {
        "shop_ids": [
            19,
            14,
            10
        ],
        "permissions": {
            "company_info": false,
            "holidays": false,
            "newsletters": true,
            "translations": true,
            "permissions": false,
            "email_settings": false,
            "products": true,
            "shop_info": true,
            "checkout_settings": false,
            "time_settings": true,
            "discounts": false
        },
        "id": 16,
        "user": {
            "id": 17,
            "email": "..."
        }
    }
]
This is a development version Do not use this version in production
1.10.0 development