Accounts and organisations

What an account owns, how organisations share a subtree and control features, what a superadmin is, where workspaces fit, and how feature flags are set.

BIM.works has a small permission model: two kinds of principal, one kind of group, one administrative role, and a set of switches that decide what each of them can see. This page explains it; the token side — how software logs in and how access is delegated — is in Tokens and delegation.

Accounts#

An Account is a person, identified by an e-mail address (the username, stored in lower case). It is created by self-registration where the instance allows it, by accepting an invitation into an organisation, or by a superadmin. Whichever way, registration creates the same things in one step: a root Node named after the username, a Demo folder under it with the instance's demo models, a "Demo API Token" bound to that folder, a personal folder in the Actions tree, and a feature set copied from the organisation's default set or, without an organisation, the instance's.

The Demo folder and its token exist so that a new user, and the documentation's examples, have something to work on that is theirs and harmless. The examples on this site substitute that token and those models for their placeholders when you are logged in.

The demo models are read-only: nothing can be uploaded to the Demo folder or the demo's folders, and the demo models cannot be deleted, moved or renamed. Versions you commit on a demo model are yours and can be deleted again. The Demo folder takes one folder of your own, Demo/Uploads, where the examples check in a file you bring; that folder, and anything else you made in the Demo folder, is yours like any other. The demo models do not count in a workspace's models, versions and storage.

An instance decides who may register: anyone, only e-mail addresses on the domain of an organisation that has enabled self-registration, or nobody. Invitations carry an expiry and an organisation, so an invited account joins that organisation on creation. Two-factor authentication is disabled, allowed or required per instance; login links (one-time e-mailed logins) and password policies exist as well and are configured by the instance administrator.

Organisations#

An Organisation is a company or another group of accounts. An account belongs to at most one. The organisation gives its members two things: a place to share models, and a common set of enabled features.

The place is a node at the root of the tree named after the organisation. Every member sees it as a child of their own root node — the tree builds that link when it lists nodes — and everything created below it is a shared node visible to all members. Members' own root nodes stay private to them. Organisations also have a folder in the actions tree for shared actions, and a logo and name the UI shows.

The features are two feature sets: what members are allowed to have, and the default set a new member starts with. The allowed set is the organisation's ceiling, maintained by a superadmin; removing a flag from it removes it from the default set too. The default set is the starting point for new accounts. An account's own set can then be changed individually, within the ceiling. There is no separate organisation-administrator role in this release. A member signed in to the UI can invite people into the organisation and list its accounts, open invites and API tokens; through an API token the same calls need the admin:read and admin:write scopes, which only a superadmin and the account that created the organisation can hold. Organisations are created by a superadmin, and changing the allowed set needs one too.

Superadmin#

A Superadmin is an account of type SUPER_ADMIN, the only role in the system. It administers the instance: creates organisations, invites and manages accounts, edits feature sets at every level, reaches every node, runs reindexes and reads the monitoring pages. The type is checked by the tasks that need it; a scope on a token does not confer it. An API token created by a superadmin can be given the superadmin scope, and even then it only reaches superadmin tasks because the account behind it is one — the universal scope * deliberately excludes it, so a "full access" integration token is never an administrative one.

Workspaces#

A Workspace groups a root node, an actions folder and a feature set under a name, an avatar and a description, owned by one account and optionally nested under another workspace of the same owner. It is the unit for "this project, these models, these tools, these people" that neither the account (too private) nor the organisation (too broad) provides. A published workspace can be opened by anyone with its link: the publish UUID is exchanged for an eight-hour read authorisation on the workspace's models, without an account. Workspaces are still being built out. WORKSPACES switches on the UI part and also gates the workspaces:read and workspaces:write scopes that cover the API tasks, so an API token reaches them only when its account has the feature.

What a visitor of the link sees is decided on three axes: the filter decides which models, the scopes which calls, and the feature visibility which features those calls return — a white-list or a black-list of attributes, properties, quantities, classification systems and the other kinds of feature (Limit the visible features of a workspace). It is enforced by the server, not by the viewer: it applies in every task that runs BQL, in the text search, the name listers, the object history, the chat and edits, so a visitor with the link and a script sees no more than one with the app. A plain read of a hidden feature is left out, but using one in a condition is refused, since a condition would give the value away. Rules nest down the workspace tree: a sub-workspace is under its own rule and every ancestor's, and can narrow what its parent shows, never widen it. What the viewer needs to show a model at all — an object's identity, name, geometry facts and containment — is never hidden.

Anonymous use#

An instance may allow use without any account through anonymous tokens. Creating one needs no credential: it gets a private folder under /Ephimeral, a copy of the instance's default feature set and a secret prefixed at-. The holder logs in with the secret for an hour at a time. Losing the secret loses the folder; there is no recovery, and switching the instance flag off stops existing tokens too. It is the account model for "try it in the browser" deployments, not for integrations.

Feature flags, level by level#

A Feature flag is a named switch such as SHARE, BUL, GIS_LAYERS or JAVA_ACTIONS. Flags are never removed, only deprecated, and the generated Feature flags lists all of them. Where a flag is set decides whom it reaches:

  • The instance default set is what a new account without an organisation, and every anonymous token, starts with.
  • An organisation's allowed set is the ceiling for its members; its default set is the starting point for new members.
  • An account's set is what that account actually has.
  • A workspace's set applies while working in that workspace.

Most flags add user interface and nothing else — they are tagged UI-only, and the API behind them is reachable regardless. The server checks a number of them as well, in two ways. Some gate API scopes, so an API token reaches those calls only when its account has the flag: COMMENTING the collab scopes, WORKSPACES the workspaces scopes, AI ai:use, CHECK_DEFINITIONS checks:write, BSDD the bsdd scopes and JAVA_ACTIONS checks:java. Others are required by the calls themselves, also for a signed-in account, which answer USER_FEATURE_REQUIRED without them: DATA_FILES, GIS_LAYERS, VIRTUAL_FEATURES, CITY_GML_EXPORT, MODEL_AUTHORING and CHAT among them. VIRTUAL_FEATURES is the one read from the workspace rather than the account: virtual features belong to a workspace, and its own set decides for everyone in it (reference/bfl#workspaces). Editing a model's objects through CommitTransaction needs BUL, as the app's editing tools do. Feature flags lists them all. Flags tagged developer-only are for BIM.works developers and demonstrators; the UI's end-user mode, a toggle in the profile menu, hides them live without changing what the account is entitled to. Entitlement and audience are separate axes on purpose: a flag says what an account may use, the mode says what a particular person needs to see.