Search

getUserRights

Returns a list of users, along with their access rights. See the saveUser for user adding or editing.

Input parameters

Parameter nameDescriptionPossible valueRequired
userIDOptional user ID to retrive one specific user dataInteger

Response

Field nameTypeDescription
userIDInteger
userNameString
groupIDIntegerID of the user group where the user belongs
maxDiscountIntegerMax. allowed sales discount
cardCodeStringUser swipe card code
rightGiveCustomerCreditIntegerRight to set customers' credit limits and to deny credit.Possible values: 0,1.
rightCreateInventoryRegistrationsIntegerRight to create inventory registrations.Possible values: 0,1.
rightCreateInventoryAmortizationsIntegerRight to create inventory amortizations.Possible values: 0,1.
rightMakePOSRefundsIntegerRight to void transactions in POS and accept returns with receipt.Possible values: 0,1.
rightMakePOSReturnsWithoutReceiptIntegerRight to accept returns without receipt.Possible values: 0,1.
rightApplyPromotionsIntegerRight to apply promotions manually or by typing in a coupon code.Possible values: 0,1.
rightChangePricesIntegerRight to edit prices on sales invoices.Possible values: 0,1.
rightEditConfirmedInvoicesIntegerRight to edit confirmed invoices.Possible values: 0,1.
rightChangeInvoiceDateIntegerRight to edit the date on sales invoices.Possible values: 0,1.
rightEditStockAndProductCostIntegerRight to edit stock and product cost directly on product card.Possible values: 0,1.
rightChangePricesOnPurchaseOrdersIntegerRight to edit prices on purchase orders.Possible values: 0,1.
rightChangeConfirmedPurchaseInvoicesIntegerRight to edit confirmed purchase orders and purchase documents.Possible values: 0,1.
rightEditPriceOnReturnWithoutReceiptInPOSIntegerRight to edit item price on return without receipt (Berlin POS only). Possible values: 0,1.
rightMakeDiscountInPOSIntegerRight to make discounts in POS (Offline POS only). Possible values: 0,1.

NB!! If API does not return this attribute, assume that the default value is 1.
rightOpenAndCloseDayIntegerRight to open / close day (Offline POS only).Possible values: 0,1.

NB!! If API does not return this attribute, assume that the default value is 1.
rightEditActualReportsIntegerRight to add and edit Actual Reports printout templates. Possible values: 0,1.
rightAddRewardPointsIntegerRight to edit customers' reward point amounts. Possible values: 0,1.
rightPOSManagerOverrideIntegerIndicates that this user is a "store manager"-level employee, and may give manager's approval to POS operations that require it (eg. applying certain promotions or discounts). Possible values: 0,1.
rightEditRetailChainPriceListsIntegerRight to create and edit price lists with other types besides "Store Price List". Possible values: 0,1.
addedUnix timestampCreation time.
addedByUserNameString
lastModifiedUnix timestampLast modification time.
lastModifiedByUserNameString
warehousesArrayKeys of the array correspond to warehouse IDs. Each item has the following attributes:

warehouseID

right - possible values: 0,1.
modulesArrayKeys of the array correspond to names of modules. Each item has the following attributes:

view - possible values: 0,1(added by myself),2(all)

add - possible values: 0,1

edit - possible values: 0,1(added by myself),2(all)

delete - possible values: 0,1(added by myself),2(all)