# List shared agendas

Returns the agendas accessible by the given user (users whose calendar is shared with them).

Endpoint: GET /calendar/users/{userId}/shared-agenda
Version: 1.6.0
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer opaque

## Path parameters:

  - `userId` (integer, required)
    ID of the user for whom accessible (shared) agendas are listed.
The response contains the users whose calendar this user is allowed to view.

## Response 200:

  - `200` (unknown)
    List of accessible agendas

## Response 200 fields (application/json):

  - `data` (array)

  - `data.user_id` (string)
    Identifier of the user whose agenda is accessible.
    Example: 42

  - `data.firstname` (string | null)
    First name of the user.

  - `data.lastname` (string | null)
    Last name of the user.

  - `data.email` (string | null)
    Email address of the user.

  - `data.status` (object)
    Visibility status of the user's agenda.

  - `data.status.is_archived` (boolean)
    True when the user is archived.

  - `data.status.is_hidden` (boolean)
    True when the user is hidden (archived or deleted).

## Response 401:

  - `401` (unknown)
    Authentication required

## Response 401 fields (application/json):

  - `error` (object)

  - `error.code` (string, required)

  - `error.message` (string, required)

## Response 403:

  - `403` (unknown)
    Access denied. The error `code` is always `FORBIDDEN`; the `message` gives the cause:
- `You do not have permission to perform this action.`
 — the access does not

hold the API pack / right required by the endpoint.
- `Insufficient scope for this request.`
 — the resource targeted by the request

(user, customer, product, agency, transaction, ...) is outside the scope of

the authenticated access.
- `Access denied for this editor.`
 /
`Your IP address has been blocked.`
 —

editor or IP restriction.

## Response 403 fields (application/json):

  - `error` (object)

  - `error.code` (string, required)

  - `error.message` (string, required)

## Response 403 examples:

  - `Missing API pack / right` (unknown)

  - `Resource outside the scope of the access` (unknown)

