A login account. user_id is the number other tables use (created by, employees). Which administrations a user may use is in AdministrationAuthorizations.
Label in Fledge: Gebruikers
| URL | https://odata-api.fledge.nl/v2-8/Users |
|---|---|
| Key | account_name |
| Administration | Shared by all administrations. |
| Operations | GET listGET onePOSTPATCHDELETE |
| Read licenses | BASISBASISAPPURENPC |
| Write licenses | BASISBASISAPP |
| Scopes | FLEDGE_PORTALFLEDGE_TERMINAL |
Example requests
A page of rows, with only the fields you need. See Authentication for the token.
curl -G "https://odata-api.fledge.nl/v2-8/Users" \
--data-urlencode '$select=account_name,default_administration_id,is_blocked,name' \
--data-urlencode '$top=50' \
-H "Authorization: Bearer $TOKEN"const url = new URL('https://odata-api.fledge.nl/v2-8/Users');
url.searchParams.set('$select', 'account_name,default_administration_id,is_blocked,name');
url.searchParams.set('$top', '50');
const response = await fetch(url, { headers: { Authorization: `Bearer ${token}` } });
const { value } = await response.json();var url = "https://odata-api.fledge.nl/v2-8/Users" + "?" + string.Join("&",
"$select=" + Uri.EscapeDataString("account_name,default_administration_id,is_blocked,name"),
"$top=" + Uri.EscapeDataString("50"));
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var json = await http.GetStringAsync(url);One row by its key:
GET https://odata-api.fledge.nl/v2-8/Users('{account_name}')Fields
| Field | Type | Description |
|---|---|---|
account_namekey | String | Aanmeld naam The login name. |
default_administration_id | Int32 | Default Administratie The administration opened at login, when the user may open it; else the one last used in that browser, else the lowest administration_id. |
default_financial_year | Int32 | Def Boekj: Default Boekjaar |
department_id | String | Afdeling |
email | String | Mail adres van de gebruiker |
function | String | Functie van de gebruiker |
initials | String | Initialen |
is_blocked | Boolean | Geblokkeerd (j/n) The account is blocked. |
iso_language_code | String | ISO taalcode |
name | String | Volledige naam: Gebruikersnaam is identiek aan _User._User-name ! The full name. |
sex | String | Sexe van de gebruiker |
user_id | Int32not null | Gebruikersnummer: Gebruikers nummer, ook een unieke key voor de tabel |
Relations
Read a related row or list in the same request with $expand, and give it its own $select; a list also needs a $top.
| Navigation | Entity set | |
|---|---|---|
AdministrationAuthorizations | AdministrationAuthorizations | many |
Agents | Agents | many |
Employees | Employees | many |
Salesmen | Salesmen | many |