The docs tree is laid out like the menus - a menu path is a docs path. Admin Panel / Settings follows the new structure: Visibility.md is Appearance.md, with new Features.md, Feature-Profiles.md, Security.md, Activities-and-Notifications.md and Delete.md; the section indexes, Admin-Panel.md, Admin-Panel-URLs.md (with the moved-pane redirects) and Validation.md follow the live menus, and Who-Sees-What.md explains in one place which layer decides what is shown and what is allowed. Pages are added for the menu entries that had none, each written from the code: every Admin Panel / Problems pane, the member menu, the board header, Board Settings, the All Boards left menu, and the list, swimlane and card menus. Older links to the moved panes are updated across docs/. TODO.md records what documenting the menus found: Edit Profile does not save a username for non-admins, the Support page's signed-out case is unreachable, Create board from this card is hidden from members who can edit the card, All Boards Settings is unreachable, and the Share template targets live in browser storage. Thanks to xet7 !
6.8 KiB
Admin Panel / Settings / Feature profiles
A feature profile gives chosen users a smaller WeKan: it hides some of the optional features from the users, teams and organizations it is assigned to. Everybody else keeps seeing everything. #6837.
Only a site administrator sees and edits feature profiles.
Where
Admin Panel / Settings / Feature profiles, right below
Features in the Settings menu. Address:
/admin/settings/feature-profiles. The pane has its own Save; it does not
save the Features ticks, and their Save does not save the profiles. The People,
Teams and Organizations tables of Admin Panel / People show which profile
applies to each person and which profiles a team or organization is named in,
so a profile can be found from either side.
What a profile can hide
Exactly the features the Features pane can switch off for the whole instance - the same list, in the same order:
- the board view groups: Table, Calendar, Time, Overview, Gantt, Scrum, Flow charts, Map, Email, Chat, Version control, Column sets;
- the helpers that need no AI: Rule suggestions, Summary, Since your last visit and Search phrases.
Swimlanes and lists are the core of a board and can never be hidden, by a profile or by the instance.
Create a profile
- Open Admin Panel / Settings / Feature profiles.
- Press Add profile. An empty profile appears.
- Profile name - what the profile is called, for example
Newcomers. Names are unique (case does not matter) and at most 100 characters. The user sees this name (see What the user sees), so choose one that means something to them. - Hide these features - tick every feature this profile hides. An unticked feature stays visible.
- Say who has it - any of the three, or several:
- Users: usernames, separated by commas;
- Teams, one per line: team names, as in Admin Panel / People / Teams;
- Organizations, one per line: organization names, as in Admin Panel / People / Organizations.
- Press the section's Save.
After saving, the status next to Save says Saved, or Saved. Not found: followed by every username, team name or organization name that matched nothing. Those are not stored, so check their spelling and save again. Everything that did match is saved.
Up to 50 profiles can exist. Their order on the page is the order they are tried in (below).
Change or remove a profile
Edit any field and press Save. Remove profile takes a profile off the page; it is gone when you press Save, and its users, teams and organizations then fall back to whatever else applies to them - usually no profile, so they see everything again.
Removing a user from the Users box of every profile, and saving, takes their direct profile away.
Which profile a user has
One profile at most applies to a user, decided in this order:
- the profile assigned to the user directly (their username in Users);
- else the first profile in the page's order that names one of the user's teams;
- else the first profile that names one of the user's organizations;
- else none - the user sees everything this WeKan offers.
A username listed in two profiles belongs to the later one: a user has one direct profile.
What the user sees
- The hidden features are gone from the interface - for example a hidden board view is not in the Board View menu - exactly as if the instance had switched them off.
- The member menu (top right, the user's avatar) opens with a note: Your feature profile Newcomers hides 3 features. Ask an administrator if you need one of them. So a user always knows a feature is hidden on purpose, and who to ask.
- A profile that hides nothing shows no note.
The user cannot change or remove their own profile: only a site administrator saves profiles.
What a profile does not do
Profiles are opt-in. A Simple/Advanced mode that hid features by default was tried and removed, because a feature missing by default is a support nightmare. So:
- Nobody without a profile is affected. Adding the first profile changes nothing for anyone until it is assigned to somebody.
- It only hides. No card, board or setting is deleted or changed. Removing the profile shows everything exactly as it was.
- It is not access control. A profile never grants or takes away a permission: a hidden feature's data is still the user's, and other rights - board roles, list role exceptions, Admin Panel access - are unchanged. Use board roles for who may do what.
- It does not override the instance. A feature the instance switched off stays off for everyone; a profile can only hide more.
Pilot users and site administrators
Pilot users (the Pilot users who also see disabled features box in Features, and site administrators when Administrators see disabled features, to try them first is ticked) see the features the instance switched off. A feature profile still applies to them, because it was assigned to them on purpose. To test a profile, assign it to yourself and open your member menu.
When somebody says a feature is missing
- Ask them to open their member menu. If it says Your feature profile ... hides, the profile is the reason.
- In Admin Panel / Settings / Feature profiles, find that profile, untick the feature (or move the user to another profile, or out of it) and Save.
- If the member menu shows no note, the feature is switched off for the whole instance (Features), or the board itself does not show it (Board Settings).
Technical details
- Stored on the settings document as
featureProfiles:[{ _id, name, hidden: [featureKey], teamIds, orgIds }], published to every client (it holds no secret: names, feature keys and team/organization ids). - A direct assignment is
featureProfileIdon the user, published only to that user. Clients may write onlyusernameandprofile.*of their own user document, so a user cannot set or clear it. - Saved by the site-admin-only methods
getFeatureProfilesandsaveFeatureProfiles(server/methods/instanceFeatures.js), which resolve the names to ids and report the ones that match nothing. - The decision is
models/lib/featureProfiles.js, used byisFeatureAvailableinmodels/lib/instanceFeatures.js- the same function every place that hides a disabled feature already asks, on the client and on the server. - Tests:
tests/featureProfiles.test.cjs,tests/playwright/specs/feature-profiles.e2e.js.
Related
- Admin Panel / Settings / Features - the features a profile chooses from.
- Admin Panel / People / Teams and Organizations - the groups a profile can be assigned to.