Workers and personas
Describe the people who use your app, and preview it as one of them.
Most apps behave differently depending on who opens them. A supervisor sees a different case list than a health worker; a form asks a different question of someone in one district than someone in another. App setup → Users and personas is where you describe those people, and it is what lets you preview your app as one of them instead of only as yourself.
There are three things on that screen, and they answer three different questions.
You can make the same changes by chatting with Nova's Solutions Architect. A connected MCP agent can also read and edit worker information, roles, and personas; all three paths use the same checks, so an invalid intermediate never saves.
While Nova loads the Project's data-table definitions, changes on this screen pause. You can still open rows and read their information. Your unfinished text stays in place, and editing becomes available when loading finishes. If the definitions could not be loaded, Try again reconnects them.
Worker information
Worker information is the data every worker carries with them, their region, their cadre, their supervisor's name. It isn't case data: it belongs to the person, travels with them into every form, and is the same on every screen they open.
Give each one a name people will recognize and a short key the app uses to refer to it. The key has to begin with a letter or underscore; after that it may use letters, numbers, underscores, and hyphens. Nova also refuses names CommCare has already claimed. The first-character rule matters because this key becomes part of the worker-data XML path that CommCare imports. Nova tells you immediately if a key won't work, rather than waiting until deployment.
If you collapse a worker-information row or look at another row while an edit is unfinished or refused, Nova keeps that draft and its explanation in place. Reopen the row to correct it; switching context never silently resets what you typed.
You can also give a piece of information a fixed list of accepted values. Once you do, any role or persona value you set has to come from that list.
Conditions and calculations can read custom worker information. In an XPath,
write its current saved key as #user/<saved-key>. In the condition builder,
choose Worker information and select it by name; this stores the stable
identity, so changing the saved key updates what Preview and CommCare read
without breaking the condition or calculation. Other user field is a
separate choice for the keys CommCare keeps for every worker on its own, such
as commcare_first_name. It never stands in for worker information your app
declares: if you type the key of a piece of worker information there, Nova asks
you to choose it from Worker information instead, so the read follows a
rename.
Information your project space already keeps about workers is worker information here too: add it with the same key. If a condition, a calculation or a text in your app already reads that key, adding it, or renaming other worker information to it, points those reads at the worker information, so a later rename keeps them. The setup list Nova shows when you publish names each piece of worker information for you to add as a user field on CommCare HQ; Nova can't create those fields for you or tell whether they're already there. Once a field is there, a worker who has no value reads it blank. A field the project space doesn't define isn't there at all, and a phone stops on any menu, list or form that reads it, so Nova asks you to add worker information before a condition or calculation reads it.
While an XPath editor is open, a teammate's rename appears live when your draft is clean, whether they renamed worker information, a question, a Search answer, a data table or one of its columns, or changed a choice's value. If you added different text, Nova carries the rename through that addition when it can do so safely. If both edits changed the same text, Nova keeps your draft and asks you to reload the shared version instead of overwriting either edit. Later teammate updates do not dismiss that warning or make the draft saveable; press Escape to reload the latest shared expression before continuing.
Nova will not remove worker information while a saved condition or calculation still reads it. The refusal names the settings to update. Once those references are gone, removal also clears the property's values from every role and persona in the same change.
Nova also shows the information CommCare provides on its own: the project the worker signed into, their name, their locations. You cannot change these, but you can write conditions against them, and each one says plainly whether Nova can show you a real value while you are only previewing. A few cannot be known yet. Keys that CommCare always supplies, including first name, last name, phone number, and the user case's email, remain present with an empty value when Nova has no honest value for them. Target-dependent keys, such as the CommCare project space, remain absent until a deployment supplies one. Nova never invents a value that would make a condition pass in Preview and fail on a real device.
A worker assigned nowhere has no locations at all. A form that reads them from the worker's own record reads them blank, but a menu, case list, Search or form that reads one from the worker's session stops on a phone, and so does a form that gives a case to the worker's place. Preview shows each of those stops for a persona with no place, with a way to give them one.
Three of them actually change how CommCare behaves; the rest are simply carried along for your app to read. The screen says which is which.
Reading the current worker
Built-in identity is available without adding custom worker information. In form
expressions, #user/hq_user_id reads the worker ID, #user/username the login
name, and #user/case_name the display name, falling back to the login name.
Record expressions use session('userid') and session('username') for ID and
login name; session() is not a form function.
Form readings need the worker's own CommCare record. Your HQ project must include user cases, and the worker must sync that record; otherwise readings can be blank. Preview supplies it, but cannot establish that the device has it. Publishing setup identifies forms with this dependency. Record-scope session identity does not need the worker record.
These values follow the selected Preview persona. Your Nova account still authorizes access to the app. The current worker is also distinct from a case's owner or its last editor. Save an actor value when a business event needs lasting history, such as who approved a request.
Saving an answer about the worker
Worker information usually flows one way: you fill it in here, and forms read it. A form can also write back. Set a question's Saves to destination to the worker's own record and pick one of the pieces of worker information you declared above, and the answer is stored on that worker rather than on a case.
That is the right home for anything that describes the person filling in the form instead of the person the form is about, a running count of visits done, a training completed, a supply level they carry. It works on any form, including one that manages no cases at all, and later forms read the value back the same way they read anything else about the worker.
Nova offers only the worker information you declared. CommCare's own fields, the name, the login, the language, the locations, are kept in step with the worker's profile, so an answer saved into one of them would be replaced the next time that worker changed; Nova says so instead of letting you find out later. A question inside a repeating section can save here through a case change. Under How often, choose to run the change for each entry in one repeating section. The entries update the same worker record in the order they appear. For a property the change sets more than once, the last update takes effect. An empty repeating section leaves the record alone.
CommCare projects on some plans do not have the worker's own record turned on. On one of those, a form that saves to it will not open at all, so if you are publishing to a project you do not administer, it is worth checking before you build a workflow around it.
Roles
A role is a job, Community health worker, Supervisor, Data clerk. Give it a name, then fill in the worker information everyone in that job shares. Define it once and every persona holding that role inherits it.
You cannot remove a role while personas still hold it. Nova names them, so you can decide whether to move those people to a different role or remove them first.
Personas
A persona is a specific person: Asha, a health worker in the southern district. Give them a name, pick their role, and change any information that differs from the role's defaults. Inherited values are shown alongside the ones you changed, so it stays obvious which is which.
For each value, Use role value removes the override and returns to inheritance. Remove value does the same when there is no role value to inherit. Clearing the input itself is different: it saves an intentionally blank value, which lets a persona override a role's nonblank default with nothing.
Personas are for designing and testing. They are not accounts, they have no password, and creating one does not create anyone on CommCare. When you are ready to hand out real accounts, Nova makes them from your personas after a publish: see Making workers.
Preview as a persona
From Preview, choose who you are running as. Preview as me runs the app as your own account. Preview as a persona runs it as that person. The same menu's Runs on group chooses whether Preview runs as Web Apps or Android.
Each persona has a stored worker record, including in apps that only collect surveys. Saving changes to the persona updates that record. Returning to Preview keeps answers that forms have saved about the worker. Preview keeps a separate worker record in each app, including when you preview as yourself. An answer saved about a worker in one app does not replace their answers in another.
This is the whole point of describing them. Previewing as Asha means:
- conditions on worker information see her values, not yours;
- a case list that shows "only my cases" shows hers;
- new cases use the form's configured owner, defaulting to her when the app uses individual case ownership. A form can also choose a shared place or an explicit owner.
Preview always says whose session you are looking at, so the two never blur together. Returning to edit mode also returns the next Preview to Preview as me. If another editor removes the persona you are currently previewing as, Nova stops the running app and asks you to switch back to yourself; it never quietly continues as your account.
Because a persona really owns the cases it creates, removing a persona leaves those cases where they are, owned by someone who no longer exists in your app. This is Nova's policy for design and test actors, not a claim that every CommCare worker-removal path behaves the same way. It avoids quietly deleting or reassigning your real test data. The confirmation counts every retained case the persona owns, including data from case types you have since removed from the app, before it enables removal. Those cases remain available in unfiltered case data views.
Sharing a new case with a group
Turn on Share new cases with a group in app settings when a new case should belong to the worker's group. Worker groups in Project data lets you choose which groups own cases and who belongs to them. Places that own cases also provide groups to their assigned workers.
An entry that needs a group as its default owner opens for a worker with exactly one eligible group. If none or several qualify, Preview explains what to check. A form that chooses an owner explicitly keeps that choice. When the worker's eligible group changes during an entry, reopen the form to use the current assignment.
Changing the owner of a new case
On a survey with one change that creates a fresh case, Who owns the case sets its initial owner. Change the owner after creation can set a different owner when the answers meet a condition. The case still saves its other values when the condition is false.
What travels to CommCare
When Nova compiles the app, conditions and calculations that read custom worker information use each property's current saved key. The worker running the app must already carry data under those keys for the expressions to see it.
Questions that save to the worker's own record travel as a real CommCare case update against that worker's user case, so the value lands on the device and syncs like any other case change. Renaming a piece of worker information moves the destination with it; nothing in the form needs editing. You can add a condition under When this runs on the form's worker record change. The worker's record is updated only when the submitted answers meet that condition.
Once the app is published to a project space, Nova can make a CommCare mobile worker for each persona. Open Publish, find that project space, and use the Workers list: tick the personas you want, adjust the username Nova suggests, and choose Make workers. Each account carries that persona's worker information and the places it stands in, and each new one comes with a password shown once, right there. Copy them before you close the dialog. Nova keeps no copy, so a password you lose has to be reset on CommCare HQ.
A few things that follow from how CommCare works:
- The username cannot change later. CommCare fixes it when the account is made. Giving a persona a different username makes a second account and leaves the first one alone.
- A username already in use belongs to somebody. Nova refuses rather than writing over it, shows you the account, and takes it over only if you say so for that exact account.
- Removing a persona never deletes the worker. CommCare's own delete also deletes every case that worker owns, so Nova will not do it. The account is reported as left behind, and removing it is yours to do on CommCare HQ.
- Roles are separate. Nova does not create CommCare user roles, and it does not set up your project's custom user-data schema. CommCare offers no way in for either, so both stay on the setup list Nova shows you.
- Worker information marked required has to have a value. CommCare will not save a worker without one, so a persona missing one is named before anything is created. Publishing still works: publishing creates no workers.
One thing worth knowing about the devices themselves: CommCare merges worker data into a device on each sync and never clears it. If you remove a piece of worker information after clearing every app reference to it, it stays on a device that has already downloaded it until that device does a full resync. Nova does not simulate that in preview, it is a property of the platform, not of your app.
Make each role available in Preview
A role supplies worker information; a persona lets you run Preview with that information. A representative name such as Field worker is enough. It does not claim that a real worker account has been created in CommCare HQ.
When Nova inspects your app, it can see roles without personas and personas missing required worker information or place assignments. If a role-gated menu is empty when running as yourself, choose a persona with that role. Location rules still need appropriate places and assignments; a role alone does not establish that a workflow is ready for deployment.
Preview's entry screen explains the difference between your own account and a saved worker identity. When the app has levels that accept worker assignments, the identity menu and entry screen show which identities have no place assigned. Identity setup opens their configuration. Test journeys opens recorded disposable examples; viewing those examples does not assign places or change the identity running in live Preview.