User

User Entity

Below are all important fields for the user entity.

id int Primary user ID
name string Full name
email string eMail addresse
company_name string Company name of the account
birthday int Unix timestamp
groups Group entities
address Address entity

Stable fields in the group entity are:

id int Primary group ID
name string Name
slug string URL friendly name
roles Array of strings User roles for this group
contact_email string Contact eMail address
address Address entity

Both entities contain an address. The address consists of the following fields:

street string Street
postal_code string Postal code
city string City
country string Country code

Show current user information

Endpoint /inventory/v4/user
Method GET
Scope All

There are no query parameter options for this endpoint. Besides Basic information about the user you also get a list of groups the user has access to.

Example Response:

{
	"id": 1234,
	"name": "Max Mustermann",
	"email": "m.mustermann@beispiel-seite.de",
	"birthday": 352116000,
	"company_name": "",
	"business_account": false,
	"groups": [
		{
			"id": 4321,
			"name": "Beispiel Forstbetrieb",
			"short_name": "Beispiel Forstbetrieb",
			"slug": "beispiel-forstbetrieb",
			"number": 0,
			"role": "FORESTER",
			"roles": [
				"MANAGER",
				"FORESTER"
			],
			"tax_rate": 7,
			"conversion_factor": 1.43,
			"euroforst_customer": false,
			"latest_update": 1708944612,
			"plus_customer": false,
			"contact_email": "info@beispiel-seite.de",
			"address": {
				"street": "Musterweg 1",
				"postal_code": "12345",
				"city": "Musterstadt",
				"country": "DE",
				"lat": 0,
				"lng": 0
			}
		}
	],
	"address": {
		"street": "Musterweg 2",
		"postal_code": "12345",
		"city": "Musterstadt",
		"country": "DE",
		"lat": 0,
		"lng": 0
	}
}