Contractor separation in two layers
When several parties share a platform (staff, subcontractors, even competing contractors), each one needs to see its own work and the shared layers. Here is how two layers of authorization give them that.
The Situation
Many organizations run shared platforms where several parties work on the same asset data. A utility has internal crews, a primary construction contractor and two or three subcontractors on the same network. A municipality has its own staff and outside engineering firms. Parties who compete with each other often end up working inside the same application.
Each party needs a login. The login tells the system who they are. Separation needs a second answer: what each person is allowed to see.
What Separation Needs
Separation on a shared platform needs four properties.
One shared platform. The parties collaborate on most of the data, report across it and work on one map. Separation covers the slice that is sensitive.
Enforcement at the source. Restricted records stay on the server. The browser, the API and every export receive only what the person may see.
Rules in one place. A rule set once covers every way data is read, including features added later.
Current data for everyone. Each party works on the live records.
Aptli meets all four with two layers.
The Two-Layer Model
Our approach separates authorization into two independent layers that compose.
Admin rights are permissive. They say what a person may do: create a work order, edit a report, delete a stock item. A person with no admin rights views the data their roles allow.
Role restrictions are restrictive. Each one names a record type (features, work orders, reports), a field on it (tags, status, category), a comparison and a value. Members of the role are blocked from the chosen actions (create, read, edit, delete) on matching records, and each restriction reads as a plain sentence.
The two layers work independently. A field worker can hold the right to edit reports while a role restriction hides reports by other people. The admin right grants the capability, and the role restriction narrows the scope. That independence keeps the model sound as the product grows.
Enforcement at the Server
Aptli applies role restrictions on the server, before data leaves the database:
- The filter applies to every way data is read: record pages, lists, the API, exports and the map.
- A person who pastes the ID of a record they may not see gets 404 Not Found.
- A link shared by someone else opens only what the person's own roles allow.
- New features inherit the rules, because they read through the same server data layer.
The system answers one question on every request: does this record match the rule?
A Worked Example
Two contractors on the same fibre build. Both use the same map and the same shared base layers, and both log reports against their own work. Each contractor's features carry its tag: contractor-a or contractor-b.
Create a role named Contractor A with one restriction:
- Record type: Feature
- Field: tags
- Comparison: is any of
- Value: contractor-b
- Blocked actions: Create, Read, Edit, Delete
The Roles window reads it back as a sentence: Members of the Contractor A role can do everything except create, read, edit and delete Feature records where tags is any of contractor-b. Give Contractor A's people the role, and set up the mirror for Contractor B with contractor-a. That is the whole configuration.
Contractor A's crews now see their own features and the shared layers. A list of features leaves Contractor B's out, a CSV export is filtered, and a pasted ID returns 404 Not Found. Contractor B sees the mirror image. Each side sees its own work, where it is and when it changed.
The shared base layers (cable routes, poles, duct infrastructure) carry neither tag and stay visible to both. The parties collaborate where they want to and stay separate where they must.
When Parties Share Nothing
Two parties that share nothing, never collaborate and must sit on physically separate infrastructure for regulatory reasons take separate instances. Aptli runs one instance and one database per customer, and each party can have its own.
The test is simple: parties that benefit from the same base layers, the same reports and the same map belong on one platform, with separation enforced at the server.
Summary
- Several parties, sometimes competitors, often share one platform in utilities, telecom and municipal operations.
- A login identifies each person. A second layer decides what each person sees.
- Separation needs one shared platform, enforcement at the source, rules in one place and current data for everyone.
- Aptli's two layers are admin rights (what a person may do) and role restrictions (which records they are blocked from), enforced at the server.
- Restricted records stay on the server, out of lists, the API, exports and pasted links.
- The worked configuration is one role per contractor restricting the other's tag, with the shared layers visible to both.
- Parties that share nothing and need separate infrastructure take separate instances.