Files
doc-exports/docs/obs/umn/obs_03_0096.html
zhangyue 19668ae97b OBS UMN DOC
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2025-05-20 13:11:00 +00:00

56 lines
5.6 KiB
HTML

<a name="obs_03_0096"></a><a name="obs_03_0096"></a>
<h1 class="topictitle1">Granting Anonymous Users Permission to Access Folders</h1>
<div id="body1557026128762"><p id="obs_03_0096__p517314258104">If all objects in a folder need to be accessible to anonymous users, you can configure a bucket policy or an object policy to grant anonymous users the permission to access the folder. In this example, a bucket policy is used. If you want to use an object policy to grant permission, select the target folder and configure an object policy. Parameters in both types of policies are the same.</p>
<div class="section" id="obs_03_0096__section13595161545612"><h4 class="sectiontitle">Procedure</h4><ol id="obs_03_0096__ol15109521165611"><li id="obs_03_0096__li171093219567"><span>In the bucket list, click the bucket you want to operate to go to the <strong id="obs_03_0096__obs_03_0307_b5948183711913">Objects</strong> page.</span></li><li id="obs_03_0096__li61722017207"><span>In the navigation pane, choose <strong id="obs_03_0096__b690119295201">Permissions</strong> &gt; <strong id="obs_03_0096__b199017298207">Bucket Policies</strong>.</span></li><li id="obs_03_0096__li516619375538"><span>Click <strong id="obs_03_0096__b126111139658">Create</strong>.</span></li><li id="obs_03_0096__li175411318101914"><span>Configure the following parameters in the <strong id="obs_03_0096__b4541641433">Create Bucket Policy</strong> dialog box.</span><p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_03_0096__table6375112782815" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Authorizing folder access permissions to anonymous users</caption><thead align="left"><tr id="obs_03_0096__row6375927132818"><th align="left" class="cellrowborder" valign="top" width="21.84%" id="mcps1.3.2.2.4.2.1.2.3.1.1"><p id="obs_03_0096__p8846141052210">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="78.16%" id="mcps1.3.2.2.4.2.1.2.3.1.2"><p id="obs_03_0096__p63751027152820">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="obs_03_0096__row1391771711228"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0096__p14846201018220">Configuration method</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="obs_03_0096__p69178170221">Choose <strong id="obs_03_0096__b5800191416433">Visual Editor</strong>.</p>
</td>
</tr>
<tr id="obs_03_0096__row17375102752819"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0096__p08469103222">Policy Name</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="obs_03_0096__p83758278280">Enter a custom name.</p>
</td>
</tr>
<tr id="obs_03_0096__row133751227142812"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0096__p1878546182513">Effect</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="obs_03_0096__p1150132882414">Allow</p>
</td>
</tr>
<tr id="obs_03_0096__row33867294264"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0096__p43864290269">Principal</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="obs_03_0096__p1730441212225">Select <strong id="obs_03_0096__b152362023144311">All accounts</strong>.</p>
</td>
</tr>
<tr id="obs_03_0096__row15368143312619"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0096__p13681533112618">Resources</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><ul id="obs_03_0096__ul17930164813514"><li id="obs_03_0096__li1893044812350">Resource scope: Select <strong id="obs_03_0096__b37591358194">Specified objects</strong>.</li><li id="obs_03_0096__li1984105713595">Resource path: If the folder name is <strong id="obs_03_0096__b16724172313292">folder-001</strong>, enter <strong id="obs_03_0096__b18729323112919">folder-001/*</strong>, indicating all objects in the folder. </li></ul>
</td>
</tr>
<tr id="obs_03_0096__row747010261281"><td class="cellrowborder" valign="top" width="21.84%" headers="mcps1.3.2.2.4.2.1.2.3.1.1 "><p id="obs_03_0096__p12471112612810">Actions</p>
</td>
<td class="cellrowborder" valign="top" width="78.16%" headers="mcps1.3.2.2.4.2.1.2.3.1.2 "><p id="obs_03_0096__p149212332251">Select <strong id="obs_03_0096__b101265287435">Customize</strong> and select the <strong id="obs_03_0096__b412622844310">GetObject</strong> action.</p>
</td>
</tr>
</tbody>
</table>
</div>
</p></li><li id="obs_03_0096__li1258419325301"><span>Click <strong id="obs_03_0096__b11355183155514">Create</strong> in the lower right corner.</span></li></ol>
</div>
<div class="section" id="obs_03_0096__section1285315186104"><h4 class="sectiontitle">Verification</h4><ol id="obs_03_0096__ol52806611715"><li id="obs_03_0096__li1055583273617"><span>After the permission is successfully configured, select an object in the folder and click the object name to view its details. The object link (URL) is displayed on the details page. Share the URL over the Internet, so that all users can access or download the object through the Internet.</span></li><li id="obs_03_0096__li728066141711"><span>Use the URL to access the object in a browser. An anonymous user can access the object.</span></li></ol>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_03_0127.html">Application Cases</a></div>
</div>
</div>