4
4
Data Source Permissions
5
5
=======================
6
6
7
- Data source permissions dictate which users in your |service|
8
- project have access to the data source and the actions they can perform
9
- on the data source. The following data source permissions are
10
- available:
7
+ .. default-domain:: mongodb
8
+
9
+ .. contents:: On this page
10
+ :local:
11
+ :backlinks: none
12
+ :depth: 1
13
+ :class: singlecol
14
+
15
+ Data source permissions dictate which actions users in your |service|
16
+ project can perform on the data source. You can also set data source
17
+ permissions to make a data source only visible to a subset of users.
18
+
19
+ |service| automatically grants data source permissions based on a
20
+ user's :atlas:`Atlas role </reference/user-roles/>`. You must
21
+ manually :ref:`grant permissions <data-source-set-permissions>`
22
+ to users with the ``Project Read Only`` |service| role to allow
23
+ those users to view charts which use a particular data source.
24
+
25
+ The following table describes the data source permission levels:
11
26
12
27
.. _data-source-roles:
13
28
@@ -17,25 +32,69 @@ available:
17
32
18
33
* - Permission
19
34
- Description
35
+ * - .. data:: Viewer
36
+ - Can view any chart on a dashboard that uses the data source.
37
+ You can grant this permission to
38
+ :ref:`specific users <data-source-specific-access>` or
39
+ :ref:`everyone in the Atlas project
40
+ <data-source-access-everyone>` for the given data source.
41
+
42
+ Data source ``Viewers`` cannot see the data source in the
43
+ :ref:`Data Sources list <data-sources-view>`, or
44
+ in the :guilabel:`Data Source` dropdown in the
45
+ :ref:`Chart Builder <build-charts>`.
46
+
47
+ * - .. data:: Author
48
+ - Inherits all actions from ``Viewer`` and can also
49
+ create and edit charts using the data source.
50
+
51
+ Users who have one of the following
52
+ :atlas:`Atlas roles </reference/user-roles/>` automatically have
53
+ the ``Author`` permission on all data sources:
54
+
55
+ - ``Project Data Access Read Only``
56
+ - ``Project Data Access Read / Write``
57
+ - ``Project Data Access Admin``
58
+
59
+ .. note::
60
+
61
+ If you create a data source and do not have the
62
+ ``Project Owner``
63
+ :atlas:`Atlas role </reference/user-roles/>`, you will
64
+ not be an ``Owner`` of that data source. The ``Owner``
65
+ data source permission is reserved for users with the
66
+ ``Project Owner`` |service| role.
67
+
68
+ * - .. data:: Owner
69
+ - Inherits all permissions from ``Author`` and can also
70
+ :ref:`manage all aspects of the data source
71
+ <manage-existing-data-sources>`.
72
+
73
+ Users with the ``Project Owner``
74
+ :atlas:`Atlas role </reference/user-roles/>` automatically
75
+ have the ``Owner`` permission on all data sources.
76
+
77
+ Modify Data Source Authors and Owners
78
+ -------------------------------------
79
+
80
+ |service| automatically assigns data source permissions to users based
81
+ on their :atlas:`Atlas roles </reference/user-roles/>`. As such, to
82
+ modify data source :data:`Authors <Author>` and :data:`Owners <Owner>`,
83
+ you must do so through the |service| :guilabel:`Access Management` page.
84
+
85
+ To access the |service| :guilabel:`Access Management`:
86
+
87
+ 1. Click :guilabel:`Atlas` at the top-left of |charts-short| to return
88
+ to your |service| :guilabel:`Clusters` view.
20
89
21
- * - Reader
22
- - Can access the data source by viewing existing charts or
23
- creating new charts which use the data source.
90
+ #. Click :guilabel:`Access Management` in the left navigation.
24
91
25
- * - Manager
26
- - Has all privileges of ``Reader`` and can also
27
- :ref:`modify the alias <mod-data-source-alias>` of a data
28
- source.
92
+ #. Click :guilabel:`Edit Permissions` for a user whose permissions you
93
+ wish to change.
29
94
30
- * - Owner
31
- - Has all privileges of ``Manager`` and can also
32
- :ref:`manage permissions <mod-data-source-permissions>` on the
33
- data source and :ref:`remove the data source
34
- <charts-remove-data-source>`.
95
+ #. Select new permission levels in the dropdown.
35
96
36
- The creator of the data source automatically has the
37
- ``Owner`` role. The creator cannot be removed from the list of
38
- data source users and thier ``Owner`` role cannot be modified.
97
+ #. Click the green check mark to save your changes.
39
98
40
99
View Data Source Permissions
41
100
----------------------------
@@ -58,19 +117,16 @@ permissions:
58
117
* - Icon
59
118
- Description
60
119
61
- * - :icon:`eye` Eye Icon
62
- - You have ``Reader`` permission.
63
-
64
120
* - :icon:`globe` Globe Icon
65
- - You have either ``Manager `` or ``Owner`` permission and
66
- :ref:`Everyone <data-source-access-everyone>` in your |service|
67
- ` project <https://docs.atlas.mongodb.com/ tutorial/manage-projects/>`__
121
+ - You have either ``Author `` or ``Owner`` permission and
122
+ :ref:`Everyone <data-source-access-everyone>` in your
123
+ :atlas:`Atlas project </ tutorial/manage-projects/>`
68
124
has some level of access to the data source.
69
125
70
126
* - :icon:`users` Group Icon
71
- - You have either ``Manager `` or ``Owner`` permission and
127
+ - You have either ``Author `` or ``Owner`` permission and
72
128
:ref:`additional users <data-source-specific-access>` have
73
- some level of access to the data source.
129
+ ``Viewer`` permission on the data source.
74
130
75
131
* - :icon:`lock` Lock Icon
76
132
- You have ``Owner`` permission and no other user has
@@ -81,10 +137,13 @@ permissions:
81
137
Set Data Source Permissions
82
138
---------------------------
83
139
84
- You can set data source permissions when you first
85
- :ref:`add a data source <add-data-source>`, or you can
86
- :ref:`modify permissions <mod-data-source-permissions>` on a data
87
- source which has already been created.
140
+ If you are a data source :data:`Owner`, you can:
141
+
142
+ - Set data source permissions when you first
143
+ :ref:`add a data source <add-data-source>`, and
144
+
145
+ - :ref:`Modify permissions <mod-data-source-permissions>` on a data
146
+ source which has already been created.
88
147
89
148
Refer to the following sections for instructions on granting
90
149
:ref:`specific users <data-source-specific-access>` permissions on a
@@ -97,30 +156,24 @@ data source and granting
97
156
Specific User Access
98
157
~~~~~~~~~~~~~~~~~~~~
99
158
100
- To grant specific users from your |service| project permissions on
101
- your data source:
159
+ .. note::
160
+
161
+ You can only share data sources with users who are members of
162
+ the |service| project associated with your |charts-short|
163
+ instance.
164
+
165
+ To grant specific users with the ``Project Read Only``
166
+ :atlas:`Atlas role </reference/user-roles/>` permission to view
167
+ charts which use your data source:
102
168
103
169
1. Search for the desired user using the search bar directly above
104
170
where the data source users are listed. You can search for users
105
171
by their username or email address.
106
172
107
- .. note::
108
-
109
- You can only share data sources with users who are members of
110
- the |service| project associated with your |charts-short|
111
- instance.
112
-
113
173
#. Click the desired user to add them to the permissions list.
114
174
115
- #. Use the dropdown to the right of the user's name to assign the
116
- appropriate :ref:`role <data-source-roles>`.
117
-
118
175
#. Repeat steps 1-3 for each user you wish to grant data source access.
119
176
120
- .. figure:: /images/charts/data-source-permissions-saas.gif
121
- :alt: Adding a data source user
122
- :figwidth: 721px
123
-
124
177
To remove access for a user you have added, click the trash can icon
125
178
to the right of the user's name.
126
179
@@ -129,28 +182,21 @@ to the right of the user's name.
129
182
Access for All Users
130
183
~~~~~~~~~~~~~~~~~~~~
131
184
132
- .. note::
133
-
134
- When you create a data source, |service| assigns the
135
- :ref:`Reader <data-source-roles>` permission to every user in your
136
- |service| project by default.
185
+ You can the grant the :data:`Viewer` permission to all users with the
186
+ ``Project Read Only`` :atlas:`Atlas role </reference/user-roles/>`.
187
+ This allows all users to view any chart on a dashboard that uses that
188
+ data source.
137
189
138
- To grant all users in your |service| project permissions on your data
139
- source:
190
+ To grant all users the :data:`Viewer` permission, toggle the switch on
191
+ the right-side of the :guilabel:`Everyone in <Project Name>` user to
192
+ ``On``.
140
193
141
- 1. Toggle the switch on the right-side of the :guilabel:`Everyone in
142
- <Project Name>` user to ``On``.
143
-
144
- #. Select the :ref:`role <data-source-roles>` to apply to all
145
- users in your |service| project.
146
-
147
- .. note::
194
+ .. note::
148
195
149
- If permissions are assigned to both :guilabel:`Everyone` in your
150
- project and a specific user, the user 's specific permissions
151
- take precedence over the permissions set to :guilabel:`Everyone`.
196
+ If you enable the :data:`Viewer` permission for everyone in your
197
+ project, a user's specific permissions take precedence over the
198
+ permissions set to :guilabel:`Everyone`.
152
199
153
- For example, if :guilabel:`Everyone` has the ``Manager``
154
- permission on a data source and a specific user Alice has the
155
- ``Reader`` permission, Alice's effective permission level is
156
- ``Reader``.
200
+ For example, if you grant :data:`Viewer` to all users and
201
+ the :data:`Author` permission to a user named Alice, Alice's
202
+ effective permission level is ``Author``.
0 commit comments