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 and documents, 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 on 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. However, note that you are not able to configure permissions on an individual file on the Displayr Cloud Drive. 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.
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)
- 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.
Method
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. However, the user will need to be assigned an annual license in order to be able to edit documents. View membership is automatically inherited.
- View Documents - members of this group can view all projects. 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 users 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. By default, the Group membership setting will be set to View Documents, but you can choose different groups from the list.
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 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 page.
- Folder-based permissions are where permissions are imposed on documents and Displayr Cloud Drive files based on the user group access settings of their folders.
- Document-based permissions are where permissions are managed for each document 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 by instead grouping relevant documents 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 which don't inherit parent permissions and some which do inherit user group edit and/or view access, and additionally configure more user groups to have access at the document-level.
Note:
- Folders are mirrored in your Documents view and the Displayr Cloud Drive. This means if you create or move a folder in either location and set access permissions, these will apply to both locations.
- The Home folder defaults to use your Account Settings, and every existing or added folder defaults to inheriting permissions from their 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 files 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.
- Users can only create or move documents 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 Cloud Drive files, otherwise the action is prevented.
- When a document is within a folder using Account Settings, its permissions are determined by the document’s permissions, i.e. it does not inherit anything from its parent folder.
- If the document is within a folder with Configured Access, document-level permissions (for both view and edit, and view only) and page-level permissions will still apply to the document. These document and page-level permissions apply in addition to the folder-level permissions.
Moving documents
- Moving documents between folders that have Configured Access permissions can cause the permissions of documents to change, and any user with edit permissions for a document can move it to a folder they also have edit access to.
- All document-specific permissions, including page, will be retained when moved into another folder.
- If you move a document with permissions in a folder using Account Settings to a folder with Configured Access, the document will inherit edit and view permissions from its new parent folder.
- If you move a document 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 within a folder with Configured Access into another folder with different Configured Access, the permissions on the document 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 which uses Account Settings, it remains using Account Settings in the destination folder.
Displayr Cloud Drive files
- By default, files stored directly within the Home folder of the Displayr Cloud Drive will follow your Account Settings permissions.
- If you have folders in your Cloud Drive, you will only see those you have access to and any parent folders that contain them.
- Permissions can only be set on folders in the Cloud Drive and not individual files. This means, in order to have configured access, you will need to move any files into an appropriate folder with the necessary permissions.
- Automated built-in processes and those which use the Schedules feature to load, read, or write files to and from the Cloud Drive require the necessary permissions for the document in order to access any Cloud 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 Cloud Drive files. These files include:
- Data sets loaded from the Cloud Drive.
- flipAPI R calculations (e.g., QLoadData, QSaveData) which reference Cloud 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 which 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 Cloud 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 Documents page.
- Click the Folder Settings
icon.
- By default, Use account settings will be selected which is based on your Account Settings.
- Change to Configure access to 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 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 to a folder so that all documents (or files) within it are accessible to these groups:
- Go to the Documents 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 from the Home folder, click the 3 dots
icon and select Settings).
- By default, Inherit access from the parent folder will be selected, which will automatically apply the access settings from that folder.
- Change to Use account settings if you wish to leave the folder to follow your default Account Settings page.
- Change to Configure access to 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 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.
- Click Save.
Note, creation of a folder and setting permissions can also be performed on the Displayr Cloud Drive side if you wish to simply store files within it. See How to Use the Displayr Cloud Drive for details.
See also How to Manage Documents in Displayr.
Choosing which user groups may access a document
Access can also be assigned to each individual document if they are not already inheriting the appropriate user groups.
To set the access at an individual document level from the Documents page:
- Go to the Documents page.
- Hover over the name of the document that you want to change, click the 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 User 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 (under the Save 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.
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