GET /plugin-api/users/get ✓ CanlıPIITenant'ın personel (kullanıcı) listesini döner — örn. siparişi bir personele atamak için. Yalnız id + ad; hassas alanlar (pincode, yetki, e-posta, mesai) kasıtlı olarak dönmez.
← API Uçları · ortak kurallar (base, auth, hata zarfı) orada.
GET {RESTOMENUM_BASE}/plugin-api/users/get
Authorization: Bearer {serverId}.{pluginId}.{secret} // install API key (token exchange){RESTOMENUM_BASE}): Sandbox https://sandbox.plugins.restomenum.app, Production https://plugins.restomenum.app (API Uçları).Authorization: Bearer <apiKey> — token exchange'teki install API key (biçim: serverId.pluginId.secret).users:read (PII) zorunlu (yoksa plugin.scope.denied).PII consent verildiyse — name dolu gelir:
{ "success": true, "data": [
{ "id": "lZz6BqN46Og4HKrhjf6eflOgWnA2", "name": "Test User" }
] }Consent yoksa — yalnız id (ad gizli):
{ "success": true, "data": [
{ "id": "lZz6BqN46Og4HKrhjf6eflOgWnA2" }
] }pincode (POS kredisi), authority (iç izin modeli), email, mesai (isbasi/issonu/günler) ve storages. Eklenti bu alanlara erişemez — yanıtta hiç yer almazlar. users:read bir PII scope'udur; kurulumda tenant'ın açık PII consent'ine (piiShared) bağlıdır — consent yoksa name bile gizlenir.| Durum | Yanıt |
|---|---|
| Scope yok | { success:false, message:"plugin.scope.denied" } |
| Geçersiz/eksik key | unauthorized (HTTP 401) |