VMS access profiles and account memberships

Portal contacts in the Client Shift Manager, the Vendor Portal and Timesheet Approval are controlled by access profiles. A profile is a record of checkboxes, one per tab or action. Every portal contact, client or vendor, gets its profile through Account Memberships, so one contact can act for several accounts, each with its own profile. A school trust user, for example, can raise requests for every school in the trust while only approving timesheets for one.

The same rules drive two things:

This article is for system integrators, implementation consultants and support engineers. For the wider VMS workflow see the VMS guide.

Concepts

Term Meaning
User Profile A b3s__User_Profile__c record. Every checkbox on it is a permission.
Account Membership A b3s__Account_Membership__c record linking a contact to an account with a profile. It is the only place a contact gets a profile.
Governed contact A contact whose access is controlled by profiles. Give every VMS portal contact an access profile.
Configured A governed contact with at least one account that carries a profile. A governed contact that is not configured sees the notice "Your profile is not yet configured. Please contact your administrator." and can do nothing.
Accounts in scope The accounts a contact may act for, each with the permissions its profile grants.

When a contact is governed

A contact is governed when either of these is true:

  1. The contact holds an Account Membership with a profile. This applies in every portal app, so a profiled client or vendor cannot escape the rules by opening a different app. A membership without a profile does not count.
  2. The app requires a profile:
    • The Vendor Portal always requires one.
    • The Client Shift Manager requires one when its app definition runs VMS: it declares a schedulables.proposal entry (the key that switches the VMS view on) or a top level vmsWorkflowMode key (any value). The shipped sample has both.

Everything else is ungoverned. That keeps the non VMS Client Shift Manager, Timesheet Submission, Timesheet Approval, Clock and Candidate Availability working exactly as before for contacts without a profile.

A request with no contact (an internal user who is not previewing a contact) is ungoverned. An internal user previewing a contact in a portal app is governed as that contact. A session key whose contact no longer exists is treated as governed and not configured on the Vendor Portal and a VMS Client Shift Manager, so it can do nothing there. Kiosk apps have their own fixed write list (see Kiosk sessions).

Which accounts a contact acts for

Situation Accounts in scope Profile used
Governed contact in any portal app (Vendor Portal, Client Shift Manager, Timesheet Approval, and the rest) Account Memberships only. The contact's own AccountId is not used. The membership's profile
Ungoverned contact The contact's own AccountId None

Membership rules:

Object reference

All three are part of the managed package. The WFM_Admin permission set grants access to the objects, every field and the User Profile tab.

User Profile (b3s__User_Profile__c)

A named set of permissions. Text name, sharing model Read/Write, its own page layout, and a User Profiles tab in the 3B VMS app. Every field is a checkbox, default unchecked.

Group Field Label Grants
Client actions b3s__Manage_Pattern_Types__c Manage Pattern Types Create reusable working pattern types (templates). Not needed for a booking request's custom schedule.
b3s__Manage_Shift_Requests__c Manage Shift Requests Raise, edit and cancel shift requests, including their breaks and tasks. Also the create, bulk create, edit and delete buttons of the regular schedule.
b3s__Manage_Booking_Requests__c Manage Booking Requests Raise booking requests, including a custom schedule; edit or delete them while their VMS Stage is New.
b3s__Edit_Submitted_Shift_Requests__c Edit Submitted Shift Requests Edit or delete shift requests after they were broadcast (VMS Stage past New). See VMS request stage.
b3s__Edit_Submitted_Booking_Requests__c Edit Submitted Booking Requests Edit or delete booking requests after they were broadcast.
b3s__Cancel_Submitted_Shift_Requests__c Cancel Submitted Shift Requests Cancel a shift request with a reason.
b3s__Cancel_Submitted_Booking_Requests__c Cancel Submitted Booking Requests Cancel a booking request with a reason.
b3s__Manage_Credentials__c Manage Credentials Manage the credential requirements of a request.
b3s__Broadcast_Requirements__c Broadcast Requirements Broadcast requests to vendors.
b3s__Request_Workers__c Request Workers Request a vendor-shared worker directly from the Workers tab, and withdraw that request. Independent of Broadcast Requirements.
b3s__Review_Proposals__c Review Proposals Approve or reject worker proposals and their credentials.
b3s__View_Worker_Evidence__c View Worker Evidence See the credential evidence files of proposed workers.
b3s__Approve_Timesheets__c Approve Timesheets Approve or reject timesheets and expenses.
b3s__Manage_Booking_Codes__c Manage Booking Codes Maintain the account's reason codes and cost codes in the Settings tab (add, edit, deactivate; global codes are internal only). See Reason codes and cost codes.
b3s__Approve_Requisitions__c Approve Requisitions Approve or reject requisitions that are Pending Approval.
b3s__Requires_Requisition_Approval__c Requires Requisition Approval Not a grant but a rule: VMS requests raised for this account start as Pending Approval, and placement extensions this contact requests wait for a client approver.
Client actions b3s__Request_Extensions__c Request Extensions Request a placement extension on the placement's client account and withdraw an own request. See Placement extensions.
Vendor actions b3s__Respond_To_Invites__c Respond To Invites Accept, reject or query invites. Invites are only marked Seen for contacts with this permission.
b3s__Onboard_Workers__c Onboard Workers Add and edit workers and their credentials, and onboard workers against the onboarding templates assigned to the account.
b3s__Propose_Workers__c Propose Workers Propose workers, edit or withdraw proposals, accept or decline worker requests.
b3s__Review_Extensions__c Review Extensions Confirm or decline a placement extension of a worker the vendor supplied (the Vendor step).
b3s__Share_Workers__c Share Workers Share workers with clients and revoke shares.
b3s__Submit_Timesheets__c Submit Timesheets Show the Vendor Portal Timesheets tab: the vendor runs Timesheet Submission on behalf of a worker it supplies (vendor delegation, see the Vendor Portal article) to edit actual times and breaks, add expenses and submit them.
Both b3s__Use_Chat__c Use Chat Read and send invite chat messages.
b3s__Provision_Users__c Can Provision Users Add portal users to your own account and deactivate or reactivate users, limited to the profile's Provisionable Profiles. See VMS user provisioning.
Tabs b3s__Tab_Invites__c Invites Tab Vendor Portal Invites tab.
b3s__Tab_Requests__c Requests Tab Requests tab (client and vendor).
b3s__Tab_Proposals__c Proposals Tab Client Proposals tab, vendor My Proposals tab.
b3s__Tab_Workers__c Workers Tab Workers tab (client and vendor).
b3s__Tab_Schedule__c Schedule Tab Schedule tab (client and vendor).
b3s__Tab_Costs__c Costs Tab Client Costs tab (bill lines).
b3s__Tab_Revenue__c Revenue Tab Vendor Revenue tab (pay lines).
b3s__Tab_Invoices__c Invoices Tab Reserved for the invoice tabs. Has no effect until those tabs exist in your version.
b3s__Tab_Timesheets__c Timesheets Tab Client Timesheets tab and the timesheets Timesheet Approval loads.
b3s__Tab_Settings__c Settings Tab Settings tab (client and vendor) and its Users list.

The Home tab of both portals is always visible. Its widgets are scoped by the permissions in their own clauses.

Permissions are discovered from the object. The server treats every custom checkbox on User Profile as a permission, by reading the object's describe. A future tab or action ships as one new checkbox with no other setup on your side, except adding the field to your page layout.

Account Membership (b3s__Account_Membership__c)

A junction between a contact and an account. Auto number name AM-{00000}. Sharing is controlled by the parent.

Field Type Purpose
b3s__Contact__c Master-Detail (Contact), primary The contact who gains access.
b3s__Account__c Master-Detail (Account) The account they may act for.
b3s__User_Profile__c Lookup (User Profile), cleared if the profile is deleted The profile for this account. Blank means the membership grants nothing.
b3s__Include_Child_Accounts__c Checkbox Also grant the account's direct child accounts.

The packaged Contact and Account Lightning record pages show an Account Memberships related list.

Removed: Contact User Profile (Contact.b3s__User_Profile__c)

The Contact level User Profile lookup shipped in 11.2.0 is removed from the package and no longer read. Vendor contacts, like client contacts, now get their profile from an Account Membership. In orgs that installed 11.2.0 the field shows as deprecated, with its data intact. Before upgrading, give each vendor portal contact a membership on its own account with the profile it had on the Contact, then delete the field from Setup.

Deprecated Contact fields

Contact.b3s__VMS_Approver__c and Contact.b3s__VMS_Requires_Approval__c are no longer read. They are replaced by the per account profile permissions Approve_Requisitions__c and Requires_Requisition_Approval__c, which the server now enforces. The fields are removed from the package, so after the upgrade they show as deprecated in your org, with their data intact. Before upgrading, move each approver or requires approval contact onto a profile that grants the matching checkbox. Then delete the two fields from Setup.

Setup walkthrough

1. Create the profiles

  1. Open the 3B VMS app, then the User Profiles tab, then New.
  2. Name the profile after the role (for example "Department" or "Finance") and tick the permissions the role needs. Use the permission matrices below.
  3. Add any checkbox missing from your layout. Custom page layouts are not updated by package upgrades.

Profiles are reusable. Create one per role, not one per contact.

2. Give portal contacts memberships

For each vendor contact that uses the Vendor Portal and each client contact that uses a VMS enabled Client Shift Manager:

  1. On the Contact record, open the Account Memberships related list and click New.
  2. Pick the Account and the User Profile for that account.
  3. Repeat for every account the contact acts for, with the same or a different profile per account.

A governed contact needs a membership even for its own account. Its AccountId is not used once it is governed. A vendor contact normally holds one membership, on its own vendor account. A contact with no membership profile sees the "not yet configured" notice.

A vendor contact who onboards workers cannot edit another contact that holds any Account Membership, so give memberships only to portal users, never to workers. Users added from Settings → Users get their memberships automatically (see VMS user provisioning).

3. Trusts and parent accounts

To give a contact every school under a trust:

  1. Make each school a child of the trust (set Parent Account on each school).
  2. Create one membership on the trust account with Include Child Accounts ticked and the profile the contact should have at every school.
  3. For a school where the contact needs a different role, add a direct membership on that school with that profile. It replaces the inherited one for that school only.

The trust account itself is also in scope through the direct membership. Only direct children are included.

4. Check the result

Sign in to the portal as the contact (or preview as them). A multi-account client contact sees an account selector next to the VMS tabs, listing every account in scope. Each tab shows only what its permission allows.

Experience Cloud (licensed) users

Guests on 3B Portals need only the WFM Guest User permission set. Licensed Experience Cloud users (Customer Community Plus, Partner Community) need object, field and record access of their own. Assign one permission set per user:

Permission set For Grants
WFM VMS Client User (WFM_VMS_Client_User) Client contacts using Client Shift Manager and Timesheet Approval Create, edit and delete on shifts, booking requests, breaks, tasks and credential requirements. Create and edit on invites, proposals, cost codes and booking codes. Edit on tickets and expenses. Read on reference and finance objects.
WFM VMS Vendor User (WFM_VMS_Vendor_User) Vendor contacts using the Vendor Portal and its embedded Timesheet Submission Edit on invites and shifts. Create and edit on proposals, contacts (workers), tickets, shared workers and expenses. Full access on breaks and worker onboardings. Read on reference, onboarding template and finance objects.

Both sets also grant the Visualforce pages and the GlobalRemotingRouter class. Neither grants View All or Modify All. Neither grants the kiosk credential fields on Contact.

These sets give the most a user can ever have. The user's User Profile and the server rules still decide which records and actions they get. Without a profiled Account Membership the user sees the "not configured" notice.

Licensed users also need record access. The user must be able to see the records through sharing sets, sharing rules or the account role hierarchy. Examples are the requisitions of their accounts (client) and the invites of their vendor account (vendor). A record the permission set allows but sharing hides does not load.

What each permission shows and allows

The UI check reads the record's own accounts where it can (through the schedulable's accountFieldPaths, see Definition configuration). A button on a record from school A only shows when the profile at school A grants it. Without a record, for example a "New" button, it shows when any account in scope grants it.

Client Shift Manager (VMS view)

Tab or action Permission
Home (dashboard) Always shown
Requests tab Tab_Requests__c
Proposals tab Tab_Proposals__c
Workers tab Tab_Workers__c
Schedule tab Tab_Schedule__c
Costs tab Tab_Costs__c, and the definition must declare the cost schedulable
Timesheets tab Tab_Timesheets__c. Governed contacts only.
Settings tab (Users list) Tab_Settings__c, and the definition must declare the user schedulable
Add, deactivate or reactivate a user Provision_Users__c plus Provisionable Profiles, see VMS user provisioning
Settings: Reason Codes and Cost Codes areas Manage_Booking_Codes__c on at least one account, the Settings tab, and the reasonCode / costCode schedulables
New Pattern Type (console and wizard) Manage_Pattern_Types__c
New Shift Request Manage_Shift_Requests__c
New Booking Request, edit a New booking request Manage_Booking_Requests__c
Custom schedule in the request wizard (server endpoint VmsPortalService.saveBookingPattern, see Custom booking schedules) Manage_Booking_Requests__c (or Edit_Submitted_Booking_Requests__c), while the request's VMS Stage is New and it has no placement
Edit a shift or booking request after it was broadcast Edit_Submitted_Shift_Requests__c / Edit_Submitted_Booking_Requests__c
Cancel Request Cancel_Submitted_Shift_Requests__c / Cancel_Submitted_Booking_Requests__c, and the definition declares requestCancelationFields
Credential requirement section on a request, manual credential editing in the wizard Manage_Credentials__c
Broadcast to vendors, "broadcast in one go" in the wizard Broadcast_Requirements__c
Request button on a Workers tab card (the modal lists only open requests on accounts granting it), withdraw a direct request Request_Workers__c
Approve or reject a proposal (runs on the server, see Proposal review), review its credentials Review_Proposals__c
View a worker's credential evidence View_Worker_Evidence__c
Open a chat thread, send a message, mark a thread read Use_Chat__c
Approve or reject a Pending Approval requisition Approve_Requisitions__c
Request or withdraw a placement extension (server endpoint VmsPortalService.requestExtension / withdrawExtension) Request_Extensions__c on the placement's client account
Approve or decline the Client step of a placement extension (reviewExtension) Approve_Requisitions__c
New requests start Pending Approval (and cannot be broadcast from the wizard) Requires_Requisition_Approval__c on the request's account

On the regular schedule of the Client Shift Manager, Manage_Shift_Requests__c also gates the create and bulk create buttons and each shift's edit and delete. It has no effect for ungoverned contacts.

Vendor Portal

Tab or action Permission
Home (dashboard) Always shown
Invites tab Tab_Invites__c
Requests tab Tab_Requests__c
My Proposals tab Tab_Proposals__c
Workers tab Tab_Workers__c
Schedule tab Tab_Schedule__c
Timesheets tab: edit actual times, breaks and expenses of supplied shifts, submit them Submit_Timesheets__c, and the definition must declare the timesheetPlacement schedulable
Revenue tab Tab_Revenue__c
Settings tab (Users list) Tab_Settings__c, and the definition must declare the user schedulable
Add, deactivate or reactivate a user Provision_Users__c plus Provisionable Profiles, see VMS user provisioning
Accept, reject or query an invite; invites auto marked Seen Respond_To_Invites__c
Propose a worker, edit or withdraw a proposal, edit proposal credentials, accept or decline a worker request Propose_Workers__c
Add a worker, edit a worker, edit a worker's credentials Onboard_Workers__c (credential edits from the proposal wizard also accept Propose_Workers__c)
See onboarding templates, onboard a worker against them (guided Add worker, Complete onboarding) Onboard_Workers__c. See Worker onboarding templates.
Share a worker with a client, revoke a share Share_Workers__c
Confirm or decline the Vendor step of a placement extension Review_Extensions__c on the vendor account
Invite and request chat Use_Chat__c

The portal opens on the first visible tab.

Timesheet Approval

Action Permission
Approve or reject a timesheet or expense, including bulk approve Approve_Timesheets__c on the timesheet's account
Which timesheets load Accounts granting Tab_Timesheets__c (shipped sample clauses)

For ungoverned contacts nothing changes.

Example profiles

The VMS_UK_EDU template on the Demo Data tab creates three client and three vendor profiles. An x marks an enabled permission. Full Access combines Planning and Finance with Provision Users and the Settings tab. UK education demo data

Permission Client - Full Access Client - Planning Client - Finance
Manage Pattern Types, Shift Requests, Booking Requests, Credentials x x
Broadcast Requirements
Review Proposals, View Worker Evidence x x
Edit / Cancel Submitted Shift and Booking Requests x x
Use Chat x x
Approve Timesheets, Approve Requisitions x x
Requests Tab, Schedule Tab x x x
Proposals Tab, Workers Tab x x
Timesheets Tab, Costs Tab, Invoices Tab x x
Provision Users, Settings Tab x
Permission Vendor - Full Access Vendor - Planning Vendor - Finance
Respond To Invites, Onboard Workers, Propose Workers, Share Workers x x
Use Chat x x
Submit Timesheets x x
Invites, Requests, Proposals, Workers Tabs x x
Schedule Tab x x x
Timesheets, Revenue, Invoices Tabs x x
Provision Users, Settings Tab x

Provisionable Profiles: Client - Full Access may assign all three client profiles and Vendor - Full Access all three vendor profiles. No other profile can provision users.

Each demo portal contact has one Account Membership. Sam Patel has Client - Full Access on Northwind Academy Trust with Include Child Accounts, giving her access to all five schools. Each school contact has the same profile on their own school only. Each vendor's first contact has Vendor - Full Access and the others have Vendor - Planning or Vendor - Finance.

Definition configuration

Three pieces of app definition JSON connect the profiles to the data. They live in the Component Configuration records (b3s__JSON__c and b3s__Loaders__c) of the Client Shift Manager, Vendor Portal and Timesheet Approval. The shipped samples already use them.

The :accountIds tokens

Use these in any selectionClause, loader filterRecordsBy, badge or dashboard widget clause, in place of =:contextUser.AccountId.

Token Resolves to
:accountIds Every account in scope for the contact.
:accountIds(b3s__Tab_Costs__c) Only the accounts whose profile grants that permission. Any User Profile checkbox API name works.

Both are resolved on the server and emitted as a quoted list, so you write IN, not =:

"selectionClause": [
    "b3s__Type__c = 'Bill' AND (b3s__Shift__r.b3s__Work_Job__r.b3s__Account__c IN :accountIds(b3s__Tab_Costs__c) OR b3s__Shift__r.b3s__Work_Site__r.b3s__Account__c IN :accountIds(b3s__Tab_Costs__c))"
]

Rules:

Use the parameterised form to tie a tab's data to its tab permission. The shipped samples scope the Requests loaders by Tab_Requests__c, proposals by Tab_Proposals__c, the Costs tab by Tab_Costs__c, the vendor Revenue tab by Tab_Revenue__c and Timesheet Approval's shifts by Tab_Timesheets__c. Reference data (jobs, sites, contacts) uses plain :accountIds.

accountFieldPaths on a schedulable

An array of field paths from the schedulable's record to the account (or accounts) it belongs to. The UI reads them to check a permission against the record's own account.

"bookingRequest": {
    "objectType": "b3s__Booking_Request__c",
    "accountFieldPaths": ["b3s__Job__r.b3s__Account__c", "b3s__Site__r.b3s__Account__c"]
}
"proposal": {
    "objectType": "b3s__Worker_Proposal__c",
    "accountFieldPaths": ["b3s__Vendor_Invite__r.b3s__Vendor_Account__c"]
}

Shipped paths:

App Schedulable accountFieldPaths
Client Shift Manager shift b3s__Work_Job__r.b3s__Account__c, b3s__Work_Site__r.b3s__Account__c
bookingRequest, placement b3s__Job__r.b3s__Account__c, b3s__Site__r.b3s__Account__c
proposal, message The four b3s__Vendor_Invite__r paths to the shift or booking request job and site account
invite b3s__Shift__r.b3s__Work_Job__r.b3s__Account__c, b3s__Shift__r.b3s__Work_Site__r.b3s__Account__c, b3s__Booking_Request__r.b3s__Job__r.b3s__Account__c, b3s__Booking_Request__r.b3s__Site__r.b3s__Account__c
sharedWorker b3s__Client_Account__c
cost b3s__Shift__r.b3s__Work_Job__r.b3s__Account__c, b3s__Shift__r.b3s__Work_Site__r.b3s__Account__c
Vendor Portal invite b3s__Vendor_Account__c
proposal, message b3s__Vendor_Invite__r.b3s__Vendor_Account__c
worker AccountId
ticket, sharedWorker, shift, placement b3s__Contact__r.AccountId
revenue b3s__Payee_Account__c
Timesheet Approval shift b3s__Work_Job__r.b3s__Account__c, b3s__Work_Site__r.b3s__Account__c
expense b3s__Working_Pattern__r.b3s__Job__r.b3s__Account__c, b3s__Working_Pattern__r.b3s__Site__r.b3s__Account__c

An expense with a blank Placement has no account value, so its approve and reject buttons use the any-account fallback. The server still checks each expense.

Restricting Job and Site options to the chosen account

The Client Shift Manager request wizard has an Account step for multi-account contacts. It offers only the accounts that grant the request permission and are inside the current account selector filter. It places the chosen account on the form record under the runtime key $accountId. Runtime keys start with $, are never queried and are never saved. Filter the Job and Site selects with showOptionIf:

{
    "field": "b3s__Job__c",
    "type": "field-select",
    "loader": "jobs",
    "optionLabelField": "Name",
    "showOptionIf": {
        "condition": {
            "allOrSome": "some",
            "selectors": [
                { "field": "$accountId", "operator": "isnull", "value": true },
                { "field": "$accountId", "operator": "equals", "targetField": "b3s__Account__c" }
            ]
        }
    }
}

The isnull selector keeps every option when no account was chosen (single-account and ungoverned contacts). The option's b3s__Account__c must be loaded, so add it to the jobs and sites loaders' fieldToLoad. The server checks the saved request's account regardless.

Server enforcement

Profiled sessions are enforced in Apex. Hiding a button is a convenience; the rules below are the real control.

Reads

Writes

Writes from a governed session (create, update and delete through the portal record services) are denied by default. A write passes only when a rule below grants it for the app, the object and the operation. Each rule names the permissions that grant it and a scope that the record must match for an account whose profile grants one of them.

Client Shift Manager (C = create, U = update, D = delete; "job or site account" = the job's account or the site's account is in scope):

Object Operations Permission Scope
Shift C Manage Shift Requests Job or site account
Shift U, D Manage Shift Requests Job or site account, and not VMS or VMS Stage New (before and after the save)
Shift U, D Edit Submitted Shift Requests Job or site account
Shift U, fields Id, b3s__VMS_Cancellation_Reason__c, b3s__VMS_Cancellation_Comments__c only Cancel Submitted Shift Requests Job or site account
Shift U, fields Id and b3s__Requisition_Approval_Status__c only Approve Requisitions Job or site account
Booking Request C Manage Booking Requests Job or site account
Booking Request U, D Manage Booking Requests Job or site account, and not VMS or VMS Stage New (before and after the save)
Booking Request U, D Edit Submitted Booking Requests Job or site account
Booking Request U, fields Id, b3s__VMS_Cancellation_Reason__c, b3s__VMS_Cancellation_Comments__c only Cancel Submitted Booking Requests Job or site account
Booking Request U, fields Id and b3s__Requisition_Approval_Status__c only Approve Requisitions Job or site account
Break, Shift Task C, U, D Manage Shift Requests Parent shift's job or site account
Working Pattern Type, Working Pattern Day C only Manage Pattern Types None
Certificate Requirement C, U, D Manage Credentials Parent shift's or booking request's job or site account
Vendor Invite C, U Broadcast Requirements Requisition's job or site account. Inserts are rejected when the request account routes VMS through the master vendor (MSP, see below)
Vendor Invite U, fields Id and b3s__Client_Chat_Read_Timestamp__c only Use Chat Requisition's job or site account
Vendor Invite C, fields Id, b3s__Vendor_Account__c, b3s__Shift__c, b3s__Booking_Request__c, b3s__Status__c, b3s__Tier__c, b3s__Invited_By_Client_Contact__c only Request Workers Requisition's job or site account, and the status is Accepted: the invite a direct worker request opens when the vendor has no active invite on the request yet. Same vendor pool and MSP checks as a broadcast
Worker Proposal C, U, fields Id, b3s__Contact__c, b3s__Vendor_Invite__c, b3s__Status__c, b3s__Requested_By__c, b3s__Requested_By_Contact__c, b3s__Comments__c only Request Workers Invite's requisition job or site account, and the status is Requested or Withdrawn (before and after the save): direct worker requests and their withdrawal only
Ticket U Review Proposals The ticket's contact is proposed against a requisition in scope
VMS Message C Use Chat Invite's requisition job or site account
Cost Center C, U Manage Booking Codes b3s__Account__c. No delete (deactivate instead)
Booking Code C, U Manage Booking Codes b3s__Account__c. Global codes (blank account) never match, so clients cannot create or edit them. No delete

Vendor Portal (scope is always the vendor's own account):

Object Operations Permission Scope
Vendor Invite U, fields Id, b3s__Status__c, b3s__Seen_Timestamp__c, b3s__Responded_Timestamp__c, b3s__Response_Comments__c only Respond To Invites b3s__Vendor_Account__c
Worker Proposal C, U Propose Workers Invite's vendor account, and the proposed worker belongs to the vendor's account. Status routing: create as Proposed only; withdraw Proposed or Client Review; answer Requested with Rejected, or accept it to Client Review (client request) or Proposed (master vendor request). b3s__Requested_By__c and b3s__Requested_By_Contact__c are never changed
Contact C, U Onboard Workers AccountId, and the contact holds no Account Membership (onboarders cannot edit portal users)
Ticket C, U Onboard Workers or Propose Workers Ticket contact's account
Shared Worker C, U Share Workers Worker's account
Worker Onboarding C, D Onboard Workers Worker's account, and the template is assigned (Onboarding Template Assignment) to an account in scope
VMS Message C Use Chat Invite's vendor account
Shift U, fields Id, b3s__Actual_Start_Time__c, b3s__Actual_End_Time__c, b3s__Approval_Status__c (Submitted only), b3s__Comments__c only Submit Timesheets b3s__Supplier_Account__c, the shift has a contact, and it is not Approved (before and after the save)
Break C, U, D Submit Timesheets Parent shift's b3s__Supplier_Account__c, and the shift is not Approved
Expense C, U Submit Timesheets The expense's shift b3s__Supplier_Account__c, and the expense is not Approved
Expense C, U Submit Timesheets The expense's placement came from a proposal of the vendor (b3s__Converted_Working_Pattern__c of a Worker Proposal on the vendor's invite), and the expense is not Approved

Timesheet Approval:

Object Operations Permission Scope
Shift U, fields Id, b3s__Approval_Status__c, b3s__Internal_Comments__c, b3s__Comments__c, b3s__Rejection_Reason__c, b3s__Query_Comment__c only Approve Timesheets The shift has a contact, and its job account, site account, or its own placement's (b3s__Working_Pattern__r) job or site account is in scope
Expense U, fields Id, b3s__Approval_Status__c, b3s__Submitter_Comments__c, b3s__Rejection_Reason__c, b3s__Query_Comment__c only Approve Timesheets Its placement's (b3s__Working_Pattern__r) job or site account is in scope
Expense with no placement (legacy or ambiguous) U, same fields Approve Timesheets b3s__Working_Pattern__c is blank and the worker holds a placement whose job or site account is in scope

The field lists match the shipped approval and rejection mini forms (recordFormFieldsApproval / recordFormFieldsRejection). If you add a field to those forms, the save is rejected until the field is added to the packaged allowlist; raise it with 3B support.

Read only rules. Client Shift Manager reads Worker Proposals of invites in scope (any status), Working Patterns (placements) whose job or site account is in scope, Bill type pay and bill staging lines of shifts in scope with Costs Tab, and any Working Pattern Type or Day. Vendor Portal reads staging lines whose payee account is in scope with Revenue Tab, Contacts of its own account, and Shifts it supplied (b3s__Supplier_Account__c, any approval status).

Proposal review

Approving or rejecting a worker proposal from the Client Shift Manager does not go through the record write rules. It calls the reviewProposal endpoint of b3s.VmsPortalService, which does the whole conversion in one server transaction: it locks the proposal and the requisition, counts fills from the database, creates the child shift or placement, marks a full booking request Filled, releases the remaining open invites and marks the other open proposals Not Selected. A retried approve returns the existing result.

Full contract and error messages: Apex and automation API reference.

Placement extension review

Requesting, approving, declining and withdrawing a placement extension also runs on the server (requestExtension, reviewExtension, withdrawExtension of b3s.VmsPortalService), never through the record write rules. The Client Shift Manager acts as Client, the Vendor Portal as Vendor; the approval chain and the permission per step are in Placement extensions. Guests without a profile are rejected.

Custom booking schedules

A booking request's custom schedule (a Working Pattern Type flagged One Off with its pattern days) is not written through the record write rules either. The wizard calls saveBookingPattern of b3s.VmsPortalService, which writes the pattern type and days on the server and stamps the type on the request.

Full contract and error messages: Apex and automation API reference.

Expense placement

Expenses carry a Placement lookup (b3s__Expense__c.b3s__Working_Pattern__c). On create, and again whenever the contact or date changes (unless the same save sets the placement explicitly), the server stamps it with the worker's placement whose Start is on or before Date_of_Expense__c and whose End is blank or on or after it, but only when exactly one placement matches. With none or several it is left (or cleared to) blank. Timesheet Approval scopes expenses by this placement's job or site account, so an approver only sees and approves expenses of their own accounts. Expenses with a blank placement fall back to the worker-scoped rule above. Set the Placement on legacy expenses so they are scoped by placement too.

Protected approval field

b3s__Requisition_Approval_Status__c on Shift and Booking Request is protected on every portal session, governed or not, including kiosks:

Protected timesheet approval status

b3s__Approval_Status__c on Shift and Expense (the timesheet approval outcome) is protected on every portal session too:

Session Allowed values
Timesheet Submission, Clock (worker apps, including a Clock hosted in the Terminal) Submitted, or blank
Vendor Portal Submitted only, through the Submit Timesheets rules. Any other value is rejected with Vendors can only submit timesheets of [<object>].
Timesheet Approval, governed Any value, only through the Approve Timesheets rule that grants the record
Client Shift Manager, kiosk apps None. Manage Shift Requests and the Edit Submitted permissions never change it

A blocked save fails with the protected-fields message above. On top of this, a shift interpreted for payroll is locked by the Shift trigger for every portal session, whatever the approval status rule says (see Shift management studio).

The VMS Stage counters (b3s__VMS_Invite_Count__c, b3s__VMS_Proposal_Count__c, and b3s__VMS_Placed_Count__c on Booking Request) are protected the same way, with no rule that grants them: only the package's triggers maintain them.

Kiosk sessions

Kiosk apps (Terminal and Biometric Enrollment, including a Clock app hosted inside the Terminal) use a dedicated kiosk access model rather than access profiles. Kiosk apps may write only these objects:

Object Operations
Shift, Break, Shift Task, Expense, Employee Request Create, update, delete
Invitation Create, update
Geo Tag Create
Contact Update only. Changing AccountId is rejected.

Every other object, including Account, is rejected with Kiosk sessions cannot change [<object>]. Install kiosk apps on trusted, physically controlled terminals only.

Server side stamps

Escalation guard

Applies to every portal session, governed or not:

A portal user can therefore never grant themselves, or anyone else, a profile or extra accounts.

Troubleshooting

"Your profile is not yet configured"

The contact is governed but no account in scope carries a profile. Check:

A tab or button is missing

A record disappears after a save or reload

Records reloaded by Id are deny by default for profiled contacts. If the object has no read rule (for example a custom object added to a portal definition), it is not returned. Load the object through a clause instead, or raise it with 3B support.

Data is missing although the tab shows

A save fails

Message Cause
Your profile does not allow this change to [<object>] for this account. No write rule grants that operation for the record's account. Either the profile lacks the permission, the record belongs to an account out of scope, the save moved the record to such an account, or the payload included fields outside the rule's allowlist. In Timesheet Approval this is also what you see when the approval or rejection form has a field that is not in the allowlist.
Object [<object>] is not accessible to portal sessions A portal session named User Profile, Account Membership or a standard object outside the portal allowlist.
Portal sessions cannot move a contact to another account. A Contact update changed AccountId.
Portal sessions cannot change an account's parent. An Account save set or changed ParentId.
Your profile does not allow changing the approval status of [<object>]. A save set b3s__Requisition_Approval_Status__c to anything but Pending Approval without an Approve Requisitions grant for the record.
Kiosk sessions cannot change [<object>]. A Terminal or Biometric Enrollment session wrote an object or operation outside the kiosk list.
The author does not belong to either side of this invite. A chat message from a contact who is neither the invite's vendor nor in scope for the invite's client account.
accountIds must be a list of Ids or Invalid account Id [...] in accountIds A custom caller sent a malformed account selection.

A profiled contact using the Clock, Candidate Availability or Timesheet Submission apps has every write denied, because those apps have no write rules. Do not give an Account Membership with a profile to contacts who also work shifts through those apps.

Configuration notes

Why checkboxes and not a multi-select picklist

Tabs and actions are checkboxes rather than one multi-select picklist of tab names because of how managed package upgrades treat picklists. New picklist values do reach the subscriber's field on upgrade, but they are not added to existing record types. Every org with record types would have to enable each new tab value by hand per record type. Checkboxes avoid that, are simple to query and report on, and keep tabs consistent with the action permissions. Either way, an admin adds a new field to their own page layout after an upgrade.

Worker sharing recipient checks

Governed Vendor Portal share writes also check the selected worker's Account against VMS Sharing Group Assignment roles. Vendor can share only with Client or Master Vendor, and Master Vendor only with Client, through a common group. This applies on creation, retargeting and reactivation. A multi-account session cannot use one account's pool to share another account's workers. Existing shares can still be revoked after assignments change. The Console applies the same eligibility rules through its sharing action.