You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
improve callout for group access in storage (#7973)
* improve callout for group access in storage
* Update table header to fix test
---------
Co-authored-by: ashika112 <155593080+ashika112@users.noreply.github.com>
Copy file name to clipboardExpand all lines: src/pages/[platform]/build-a-backend/storage/authorization/index.mdx
+14-8Lines changed: 14 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,8 @@ Refer to the following examples to understand how you can further customize auth
36
36
37
37
## Access Types
38
38
39
+
Authentication is required to continue using Amplify Storage, please make sure you set it up if you haven't already - [documentation to set up Auth](/[platform]/build-a-backend/auth/set-up-auth/).
40
+
39
41
<Callout>
40
42
41
43
**Note:** Paths in access definitions cannot have a '/' at the beginning of the string.
@@ -44,15 +46,10 @@ By default, all paths are denied to all types of users unless explicitly granted
44
46
45
47
</Callout>
46
48
47
-
Authentication is required to continue using Amplify Storage, please make sure you set it up if you haven't already - [documentation to set up Auth](/[platform]/build-a-backend/auth/set-up-auth/).
48
-
49
49
<BlockSwitcher>
50
50
<Blockname="Guest Users">
51
-
{/* it's not actually files that are like /media/*hey right? so instead it should be all files that are under the media/ */}
52
51
To grant all guest (i.e. not signed in) users of your application read access to files under `media/`, use the following `access` values.
53
52
54
-
{/* I would flip this guide to have the conceptual first so you don't need explanations like the ones in the comments */}
**Note:** When a user is part of a group, they are assigned the group role, which means permissions defined for the authenticated role will not apply for this user.
69
+
70
+
To grant access to users within a group, you must explicitly define access permissions for the group against the desired prefix.
71
+
72
+
</Callout>
73
+
69
74
To grant all authenticated (i.e. signed in) users of your application read access to files under `media/`, use the following `access` configuration.
**Note:** When a user is part of a group that has access rules defined in the `amplify/storage/resource.ts` file, those group-specific access rules will take priority over any general access rules set for authenticated users.
91
+
**Note:** When a user is part of a group, they are assigned the group role, which means permissions defined for the authenticated role will not apply for this user.
92
+
93
+
To grant access to users within a group, you must explicitly define access permissions for the group against the desired prefix.
0 commit comments