---
title: "UserSitePermissionsByUserLogin (Matomo)"
description: "Matomo Users Manager User Site Permissions"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.UsersManager.UserSitePermissionsByUserLogin
original: https://documentation.invantive.eu/en/datamodels/matomo/Matomo.UsersManager.UserSitePermissionsByUserLogin
updated: 2026-11-10T15:13:36Z
license: https://documentation.invantive.eu/en/
---

# UserSitePermissionsByUserLogin: Matomo Matomo Users Manager User Site Permissions

`insert` `REST`

- Catalog: `Matomo`
- Schema: `UsersManager`
- Primary Keys: `site`
- Label: Matomo Users Manager User Site Permissions

Can retrieve data and change data using `insert`.

## Summary

The access level (view, write, admin or noaccess) one account holds on one site. Update and delete are not wired up - see the remarks below; call insert again with a new access value to change or remove a permission, the same idempotent call Matomo itself uses for both.

## API Source

- Endpoint: `/index.php?module=API&method=UsersManager.getSitesAccessFromUser&userLogin={user_login}&format=json`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Write rows per minute | 3,620 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `user_login` | `varchar2` | [x] |  | The Matomo account to list site permissions of - Matomo.UsersManager.Users.login. |

## Table Columns

The columns of the table `UserSitePermissionsByUserLogin` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `access` | `varchar2` | itgen_mat_access | [x] | filters on the platform, writable | Access level: 'view', 'write', 'admin' or 'noaccess' - Matomo removes the underlying row entirely once it is set to 'noaccess', verified 2026-08-28. Granting 'admin' or the anonymous account 'view' over a genuine login session (not this driver's own token_auth connection) additionally demands password confirmation - Matomo's own setUserAccess() gates that on AuthenticationToken::isSessionToken(), which a token_auth connection is not, confirmed live 2026-08-28. Matomo also accepts an array of one role plus capability IDs here (for instance ['write', 'tagmanager_write']) - not exposed by this column, which only ever carries the plain role. |
| `site` | `int32` | itgen_mat_site | [x] | filters on the platform, writable | Site ID: primary key within one user_login's own result set (not globally unique - the same call scoped to a different account answers its own set of site rows). Matomo's own setUserAccess() takes it as 'idSites', plural, and also accepts a comma list or 'all'; this column always carries exactly one site. |
| `user_login` | `varchar2` | itgen_mat_user_login | [ ] | filters on the platform, writable | Account to grant, change or remove access for. Required on insert; never answered on read, since a read is already scoped to one account by the table's own user_login argument. |

