In this day and age, data security and policies are a part of everyday life for analysts. Displayr has a robust system that allows you to manage access to various data, documents, and files, ranging from a general level where users can access a dashboard or files to a very specific level where users can access a page or a subset of data. Users are assigned to one or more User Groups, and those are used to add/remove permissions for the user. Default permissions can be set at the account-level as well as the folder-level and are inherited by documents within unless you have configured permissions (essentially overriding these defaults) on an individual document. Files on the Displayr Drive can also have their own permissions, in folders that use account settings. See Moving documents and Moving folders below for how permissions may change when moving things. Only Users in the Administrator User Group are able to modify permission settings, except that folder editors can add and remove View only groups on folders they edit.
For more detailed guides on how to control access for editing, viewing, and page-based viewing, see:
- How to Control Who Can Edit Documents in Displayr
- How to Control Who Can View Your Documents in Displayr
- How to Control Who Can View Pages in Your Document
This article covers:
- Default Groups
- Creating Groups
- Assigning User Accounts to Groups
- Setting Permissions
- Setting default home folder user group access
- Choosing which user groups may access a folder
- Choosing which user groups may access a document
- Restricting access to individual pages (Page-based access)
- Choosing which user groups may access a file
- Enable a document to change based on the user's group membership
Requirements
You must have a paid Displayr License to convert to a multi-user account.
Default Groups
New accounts will start with three levels of access:
- Administrators - can add new users, create groups, and change the level of user access. Allows the user to administer the account, including changing billing details, adding/deleting users, configuring Users and User Group permissions, purchasing licenses, downloading Usage reports, etc. Create/Edit and View membership is automatically inherited.
- Create/Edit Documents - members of this group have access to view and edit all projects and files. However, the user will need to be assigned an annual license in order to be able to edit documents and files. View membership is automatically inherited.
- View Documents - members of this group can view all projects and files. By default, all new users will be added to this group. This user does not need a license. When the user views a document, their usage will be deducted from the pool of view-mode time. See How to Track Your Displayr Usage for more info.
Creating Groups
To create a group of users:
- Make sure your account is set up as a Multi-User Account.
- In Displayr, go to your Account Settings page and the Settings tab (see How to Access Your Account Settings).
- Scroll down to the Groups section. Here you will see the list of existing groups set up in your account.
- Click on + New Group. You will be taken to a new page.
- Enter a Group name.
- Enter any group's notes in the Notes section.
- Tick or untick the Explore checkbox based on whether or not you want users in this group to be able to use Explore mode. Users with enabled Explore mode have access to all of the data in your document, so this option is not appropriate for restricting access to parts of the data.
- OPTIONAL: Add members via Members > Add Member.
- Click Save.
This group will now appear in the list of groups on the Settings page.
Assigning User Accounts to Groups
Each user account in a multi-user account can be assigned to one or more groups.
You can assign a user to groups when you first add the user to your account or after they've accepted the invitation. New user accounts are created by going to the Settings page and clicking the + New User button at the bottom of the Users section. The pre-selected Group membership setting comes from Account Settings > Access > Default group for users added manually. You can choose different groups from the list. Note: This does not apply to single sign-on (SSO) users, as their group membership comes from the group mapping settings.
To change the groups that an individual user is assigned to:
- From your Account Settings, click on the Settings tab.
- Scroll to the Users section.
- Click on the name of the user you want to change.
- Change the selections in the User Group Membership menu.
- Click Save.
To update multiple users who are part of a group at once:
- From your Account Settings, click on the Settings tab.
- Scroll to the Groups section.
- Click on the Group that you want to edit the group membership.
- To add users, click + Add Member.
- Select the user(s) to add to the group. You can hold down the Ctrl key to select multiple users at once.
- To remove users from a group, click the X that appears in the Action column to the right of a user's name.
- Click Save.
Setting Permissions
Administrators can set permissions at the account, folder, document, file, or page level depending on your requirements:
- Account-level default permissions are where permissions are based on the User group with view access to published documents and User group with view and edit access to documents settings on your Account Settings > Access page.
- Folder-based permissions are where permissions are imposed on documents and other Displayr Drive files based on the user group access settings of their folders.
- Document-based permissions are where permissions are managed for each document and file individually.
- Page-based permissions are where permissions are managed for each page within a document individually.
Using folder-level permissions removes the need to individually set permissions on a document or folder by instead grouping relevant documents and files within a folder with the necessary permissions set once. Users are also able to configure a mixture of folder-based permissions and document-based permissions. In this way, users can create subfolders that don't inherit parent permissions and some that do inherit user group edit and/or view access. In folders that use account settings, access can also be set for individual documents and files.
Note:
- The Home folder defaults to Configure this folder, and every existing or added folder defaults to inheriting permissions from its parent folder. If you update the settings for any folder to change access, the following will need to be considered.
User group access
- Users can only see folders they have view or edit access to, or any parent folders that contain a document or file they have access to.
- Users with view access to a folder can only see published documents.
- If a user has full edit or view access to a document via folder-based permissions, then they have access to everything in that document, regardless of document-level or page-level permissions.
- If users have no access to a folder, but they do have document-level access to a document within that folder, they will then see the document and the folders where the document is stored, but no other documents or files.
- Users can only create or move documents and files in or to folders where they have edit access, otherwise, they will appear greyed out and not be able to be used as a destination.
- When attempting to delete or move a folder, a user must have edit access to everything within that folder, including Displayr Drive files, otherwise, the action is prevented.
- When a document or file is within a folder using Account Settings, its permissions are determined by its own settings (Document Settings or File Settings), i.e., it does not inherit anything from its parent folder.
- If the document or file is within a folder with Configured Access, the folder decides who can view and edit it, so Document Settings and File Settings show the folder's groups greyed out. Access to individual pages of a document is still set per document.
Moving documents and files
- Moving documents and files between folders that have Configured Access permissions can cause the permissions of documents and files to change, and any user with edit permissions for a document or file can move it to a folder they also have edit access to.
- All document-specific permissions, including page permissions, will be retained when moved into another folder.
- If you move a document or file with permissions in a folder using Account Settings to a folder with Configured Access, the document or file will inherit edit and view permissions from its new parent folder.
- If you move a document or file in a folder with Configured Access into a folder using Account Settings, the Configured Access permissions will continue to apply.
- If you move a document or file within a folder with Configured Access into another folder with different Configured Access, the permissions on the document or file change to the new/different Configured Access.
Moving folders
- If you move a folder with Configured Access that has non-inherited permissions, they remain when moved to the destination folder.
- If you move a folder with Configured Access that has inherited permissions, the folder begins to inherit permissions from the destination folder.
- If you move a folder that uses Account Settings, it remains using Account Settings in the destination folder.
Displayr Drive documents and files
- By default, documents and files stored directly within the Home folder of the Displayr Drive will follow your Account Settings permissions.
- If you have folders in your Displayr Drive, you will only see those you have access to and any parent folders that contain them.
- In folders that use Account Settings, each file has its own editors and viewers (see Choosing which user groups may access a file). In a folder with Configured Access, the folder decides who can view and edit its files.
- Automated built-in processes and those that use the Schedules feature to load, read, or write files to and from the Displayr Drive require the necessary permissions for the document in order to access any Displayr Drive files. This means any file added to a folder that has configured permissions can only be imported into or updated in a document where every user group that can edit this document also has Edit access to the folder containing the Displayr Drive files. A file in a folder that uses Account Settings can be read by a document when the file's only editor group is Create/Edit Documents, or when every user group that can edit the document is also an editor of the file (Administrators always count). These files include:
- Data sets loaded from the Displayr Drive.
- flipAPI R calculations (e.g., QLoadData, QSaveData) which reference Displayr Drive files.
- Combining and stacking data sets.
- Custom fonts and crtx template files.
- All other loaded files stored within a folder with configured access require the user to be a member of a user group that has access to the folder they are stored in. These files include:
- QScripts/RScripts
- Templates, e.g., a visualization or variable set template
- Images
- QCodes file
See How to Use the Displayr Drive for more details.
Setting default home folder user group access
You can begin by setting the access permissions of your Home folder:
- Go to the Displayr Drive page.
- Click the Folder Settings
icon.
- By default, Configure this folder is selected.
- When configuring access, change the selections in Create, edit, and view to choose which groups can edit the document in addition to being able to view it.
- When configuring access, change the selections in View only access to choose which user groups may view the document but not edit it.
- Note: changing this setting will, in turn, modify the permissions of any sub-folder configured to inherit permissions.
Choosing which user groups may access a folder
You can set user group permissions for a folder so that all documents or files within it are accessible to these groups:
- Go to the Displayr Drive page.
- Create a folder via New > Folder.
- Tick the checkbox adjacent to the document on hover and click Move.
- Select the desired folder and press Move.
- Select the folder and click the Folder Settings
icon (or on the Home folder page, click the 3 dots
icon to the right of the folder's name and select Settings).
- By default, Inherit from parent folder will be selected, which will automatically apply the access settings from that folder.
- Change to Use access configured in Account Settings > Access if you want the folder to follow the default access set on the Access tab of Account Settings.
- Change to Configure this folder if you wish to select which user groups can access this folder.
- When configuring access, change the selections in Create, edit, and view to choose which user groups can edit the document/file in addition to being able to view it.
- When configuring access, change the selections in View only access to choose which user groups may view the document/file but not edit it.
- Click Save.
See also How to Manage Documents and Files in Displayr.
Choosing which user groups may access a document
Access can also be assigned to each individual document if the folder's access is configured in Account Settings > Access.
To set the access at an individual document level from the Displayr Drive page:
- Go to the Displayr Drive page.
- Hover over the name of the document that you want to change, click the ellipses (3 dots)
icon, and then select Settings.
- Expand the Access section.
- Change the selections in View access to choose which user groups may view the document but not edit it.
- Change the selections in View and edit access window to choose which groups of users can edit the document (in addition to being able to view it).
- Click Save.
Note that you can expand the Users with Access section to display a list of users who have access to the document, along with their current group membership.
To modify access to documents from the Groups settings:
- From your Account Settings, click the Settings tab.
- Scroll to the Groups section.
- Select the group that you want to modify access to documents for.
- Click the Access tab (next to the Members button).
- Click the cog
in the Manage column next to the document's name.
- This will take you to the Access section of the Document Settings page.
- Change the selections in View access to choose which groups may view the document but not edit it.
- Change the selections in View and edit access window to choose which groups of users can edit the document (in addition to being able to view it).
- Click Save.
Restricting access to individual pages (Page-based access)
You can also restrict pages in your document so that only certain groups of users can view them. This may be appropriate when you have a large document, and some results are only relevant to some of the end-users.
It is important to note that users assigned to one of the default groups (Administrators, Create/Edit Documents, or View Documents) will be able to access and view all the pages in your document. As a result, any user who is to be restricted to individual pages must not be a member of any of the default groups.
To choose which user groups can view each page of the document:
- Create your document.
- Publish it for the first time using Share > Publish to web.
- When publishing, choose the option Login and password required.
- Go to the document's settings as described above or by clicking
> Document Settings to the right of the document's name.
- Expand the Access section.
- Scroll down to the bottom and click Set page-based access to document.
- For each Page, select the groups you wish to grant access to the page. You can make multiple selections by holding CTRL.
- Click Save.
Please note that publishing a free document privately will convert the document type to professional. Publishing a document privately requires a Professional Displayr license and server time for private dashboards. See Free vs Professional Documents for more information about document types.
Choosing which user groups may access a file
Access can also be assigned to each individual file in the Displayr Drive if the folder's access is configured in Account Settings > Access.
To set the access at an individual file level from the Displayr Drive page:
- Go to the Displayr Drive page.
- Hover over the name of the file(s) that you want to change, click the ellipses (3 dots)
icon, and then select Settings.
- Go to the Access section.
- Change the selections in Edit and view to choose which groups of users can edit the file (in addition to being able to view it).
- Change the selections in View only window to choose which user groups may view the file but not edit it.
- Click Save.
Note that you can go to the Users with Access section to display a list of users who have access to the file, along with their current group membership.
View access lets users see and download the file. Edit access also lets them delete, rename, move, and upload a new version of it. Only administrators can change a file's editors, and administrators are always shown as a locked editor. New files start with the Create/Edit Documents group as their editor; removing that group leaves the file to administrators only.
Enable a document to change based on the user's group membership
It is possible to set up a document so that it changes the sample and outputs that are shown based on the group membership of the user who is viewing the document. This means that you can create pages that show only data that is relevant to the person who is viewing the document. For instance, you may create a document that contains survey responses for different departments within your organization, and create a filter selecting only responses that relate to the department of the user who is logged in to view the document.
In an R Output or R Variable, the following special code will always create a vector that contains the names of the groups of the current user:
QViewModeUserGroups
Your R code can then make decisions based on the groups that are shown. See here for a detailed example of how to set this up.
Next
How to Give Groups of Users Access to a Document
Watch our New Users and Permissions video
UPCOMING WEBINAR: How to Hand Half Your Job to AI (the Right Half)