Teams and permissions: split view, edit and export, scope to a branch, and test it
Steps 3 to 6 of locking down customer data: grant viewing and exporting separately, scope each document permission to a branch, without a company target on the same permission, test it on one person, and switch on multi-factor authentication. It follows Step 2; if you give each person a role in Tenant Admin instead, you start here. The running example is GadgetSphere Sdn Bhd, with 22 branches and around 85,000 customer records, whose cashiers need to look customers up at the counter and do not need to download them.
Before you change anything, from what a team leans on: your companies, branches and locations must exist in the Organisation applet, because a target grid has no rows to tick until they do. Taking the tenant owner or admin permission off the only role that carries it can leave nobody able to manage teams or roles, so keep it on at least two people. Moving a person’s branch target takes the old branch’s documents out of their listing the next time they open the applet, including any they were half-way through, so hand those over first. Before you give anyone the export permission, ask them to turn multi-factor authentication on and confirm that they have (Step 6).
- Split view, edit and export.
- Scope each permission.
- Test it on one person.
- Turn on multi-factor authentication.
Step 3: Split view, edit and export
Navigate to: Tenant Admin → Tenant Roles → (the role), then Applet → (the applet) → Permission Sets or the Permission Set tab, and finally the User tab to give the role to people. For a team: the team → Edit Permissions.
The two routes do not combine on these screens. A role takes permission sets and is given to people. A team takes permissions one at a time on its Edit Permissions tab, each with one target or All, and every member holds them. Neither Tenant Roles, nor Tenant Admin’s Settings › Role Permission, nor the Team Maintenance applet links a team to a role. The team’s Permissions List shows only what was granted to the team itself — not what its members also get from their own roles.
The permissions that govern customer and membership personal data, each with the code you will see in the picker:
| What you want to control | Permission to grant |
|---|---|
| Look up and view a customer | TNT_API_CUSTOMER_READ |
| Create or change a customer | TNT_API_CUSTOMER_CREATE / _UPDATE, with _READ |
| Build and download the customer export file | API_TNT_DM_ENTITY_EXPORT_CREATE / _READ |
| Open the member list in Membership Admin | the API_TNT_DM_CRM_MEMBERSHIP_CARD_HDR_* family |
| Add or change a member | TNT_API_MEMBERSHIP_CARD_CREATE / _UPDATE, with _READ |
| Generate and download the members CSV | API_TNT_DM_CRM_MEMBERSHIP_CARD_HDR_CREATE / _READ |
| See who changed a customer record | TNT_API_DM_APPLET_AUDIT_TRAIL_CREATE (the _OWNER and _ADMIN codes also open it; _READ does not) |
These are the codes the Customer and Membership Admin applets’ own requests check, not the TNT_API_ENTITY_* codes. Other screens that look a customer up, the till among them, were not read: try them as the test user in Step 5.
The export file is a separate right, and it is two permissions. The create code queues the job that builds the customer CSV, and the read code lists and downloads the finished files; viewing a customer opens neither. Give HQ Marketing both. Anything a person can list on screen they can also print or save, so also decide who gets the Customer applet at all.
If more than one export is already queued, the server answers Please wait until the current file finishes before generating additional files. and builds nothing, while the File Export screen shows The report is being generated. either way. If no new file appears in the list, wait and ask again.
The file export is refused without the right. Both requests are refused to anyone in your tenant who holds neither the code nor an owner or admin code.
Changes are recorded. Creating or changing a customer in the Customer applet writes an audit record: the new data (on a change, the data before as well), who did it and when. The applet has no button that deletes a customer; you retire one by changing its Status, which is a change and is recorded. Your auditor reads it from the Customer applet’s Audit Trail, opened by the audit-trail permission above.
A role table you can copy
GadgetSphere’s roles:
| Role | View customer | Edit customer | Export customer | View membership | Edit membership | Export membership |
|---|---|---|---|---|---|---|
| Cashier | All (why) | No | No | All | No | No |
| Branch Manager | All | Yes | No | All | Yes | No |
| HQ Marketing | All | No | Yes | All | No | Yes |
| Administrator | Yes | Yes | Yes | Yes | Yes | Yes |
Only two of the four roles can build the customer file, and only one of those can edit: the shape to aim for.
Membership export has no right of its own. The members CSV is generated with the card-header create code and downloaded with its read code: the same family that opens the member list in Membership Admin, so read the Export membership column of the table with the membership columns beside it. Grant the family only to roles you would trust with the file; whoever owns customer data reviews both lists quarterly.

Step 4: Scope each permission to a branch or company
The outcome is a cashier whose document listings open on the branch they work at.
For a role, open Tenant Admin → Tenant Roles → (the role) → Applet → (the applet) → Permission Sets. It has three sub-tabs — Branch, Company and Location — one grid per permission template, with the available targets as rows and a checkbox per row. Tick the targets you want and save. For a team, pick the target in Select Target and Select Target Name as you add each permission.
Leaving a permission with no target (All) means full access across everything: fine for your administrator, almost never right for a cashier.
For GadgetSphere, the Retail Cashiers — Klang Valley role gets its document permissions scoped to branch GS-KV-01. A cashier there opening the sales invoice listing sees the invoices raised at GS-KV-01 and not the ones raised in Penang, because that listing opens narrowed to the branches named on their invoice read permission.
A target narrows document listings, not master data. A document listing that applies targets shows a document to anyone permitted at its company, its branch, its delivery branch or its location; only the Sales Invoice listing was read for this page, and it opens on the branches of the invoice read permission. When the server answers a request for the master data read for this page — the customer list and the member list in Membership Admin — it checks that you hold the code and then returns the whole tenant, whatever branch your grant names. So the cashier can still look up a customer who has only shopped in Penang.
Why it works that way: scoping is something each listing does for itself; the invoice listing above does, and the customer and member lists do not. Treat the masters as visible to everyone who may read them at all, and a branch target as what keeps each person’s working lists to their branch, not as a secrecy wall between branches. What the target actually does once you have set it says where it stops, for suppliers, items and single records too.
An empty drop-down is not a reason to add a company target
The symptom you may meet first is a drop-down that is empty or short. In the sales invoice applet, the Branch picker on a new document is built from exactly these targets: when it opens, the applet asks the server which permissions you hold and with which targets, and offers you those branches.
The Location picker reads no target: it offers the locations linked to the branch you picked (the whole location list, if none is linked) and, while the box is empty, fills in the only one or else the branch’s main location if that is on the list, so check it before you save. Other applets’ pickers were not read; try them in Step 5.
In the sales invoice applet a new document has no Company box: the company comes from the branch you pick, so the header needs no company target (creating and saving are permissions of their own).
The Company filter in the listing’s search panel is a separate thing. What it lists depends on the applet’s build, and it is not a measure of the person’s scope. Empty or full, filter by branch, and do not tick the company because of it: where a listing applies targets on the server, a document is listed at its company, its branch or its delivery branch, so a company target on the same permission opens every branch of that company.
Users who hold Tenant Admin or Tenant Owner skip the whole check and see every company and branch, so the person testing often cannot reproduce what their staff report. Test as an ordinary member of the team, never as yourself.
Step 5: Test it on one person before rolling it out
Configure a single test user with the new role, log in as them, and try to do the thing they should not be able to do. After any change, have them reopen the applet first: an open screen still holds the permissions it read when it started, so a removed branch stays in its drop-down.
For GadgetSphere: open the sales invoice listing as the test cashier and confirm that Penang’s invoices are absent (the list opens on a recent date range, so check Penang raised one in it); open a new document and confirm the Branch selector offers only their branch, and that the document saves; then ask for a customer file export (should be refused). Do not make “can they find a Penang customer” one of your checks: they can, and that is the product, not your configuration.
Roll out once all three behave as expected.
Step 6: Turn on multi-factor authentication
BigLedger supports multi-factor authentication (MFA) on user login; treat it as non-negotiable for accounts that can export.
MFA belongs to the person’s akaun.com sign-in, not to your tenant, a team or a role. Each person switches it on for their own login by scanning a QR code into an authenticator app and confirming a code, and BigLedger then records that login as protected. The team and role screens have no switch for it, so make it a condition of the grant: confirm the person has turned MFA on before you give them the export permission.
A person who loses their phone requests a reset, and BigLedger e-mails a reset link to their main e-mail address. Completing a reset turns MFA off for that login until the person sets it up again, so confirm again after one.
What success looks like for this part
Your roles (or the team) hold the view and export permissions your role table says and nothing more; every document permission of a branch role carries its branch target and no company target; your test user, in a freshly opened applet, saw the listing open on their own branch’s documents, was offered only their branch on a new document and saved it, and was refused the customer file export; and everyone who holds the export permission has confirmed they turned MFA on. Then run the whole task’s success check.
Common mistakes in this part
Granting the role but forgetting the scope. A permission with no target is unrestricted: your “branch-only” cashier sees every branch’s documents. Symptom: the test in Step 5 returns invoices from branches the person does not work at. Fix: give the permission its branch target, and take the untargeted grant away (on a role, REMOVE on its Permission Set tab; on a team, delete the line whose target reads None); while it stays, the server still treats the person as unrestricted.
Ticking the company to fill an empty drop-down. Symptom: a branch-only person reports an empty Company filter in a listing’s search, someone ticks the company on the same permission, and from then on every listing that applies targets on the server shows the person every branch of that company. Fix: take the company permission set off the role on its Permission Set tab (unticking the last company on the grid revokes nothing), then filter by branch. If another applet’s document screen ever refuses to save for want of a company, test it on your test user before you change the role.
Expecting a target to hide master data. Symptom: your branch-scoped cashier finds a customer from the other end of the country. No setting fixes this (Step 4); stop relying on it.
Locking down the applet but leaving the reports open. An export that lists customer contact columns is opened by whatever code its own request checks: the members CSV by the membership-card codes in Step 3, not by the Customer applet’s. Review your report list alongside your applet permissions.
Assuming view permission covers export. It does not. If your marketing team reports that asking for the file ends in an error, they are missing API_TNT_DM_ENTITY_EXPORT_CREATE, not the view permission; if they can ask for the file but cannot list or download it, check API_TNT_DM_ENTITY_EXPORT_READ.
Two more, on joining a team that already holds permissions and on never reviewing who holds what, are on the front page.