forked from docs/doc-exports
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com> Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: zhangyue <zhangyue164@huawei.com> Co-committed-by: zhangyue <zhangyue164@huawei.com>
55 lines
7.0 KiB
HTML
55 lines
7.0 KiB
HTML
<a name="obs_40_0022"></a><a name="obs_40_0022"></a>
|
|
|
|
<h1 class="topictitle1">Granting IAM User Groups Specified Permissions on All OBS Resources</h1>
|
|
<div id="body1588765301379"><div class="section" id="obs_40_0022__section43491717165116"><h4 class="sectiontitle">Scenario</h4><p id="obs_40_0022__p3431154410448">This topic describes how to grant multiple IAM users or user groups specific permissions on all OBS resources.</p>
|
|
</div>
|
|
<div class="section" id="obs_40_0022__section106520378518"><h4 class="sectiontitle">Recommended Configuration</h4><p id="obs_40_0022__p103657437515">IAM custom policies</p>
|
|
</div>
|
|
<div class="section" id="obs_40_0022__section786219432319"><h4 class="sectiontitle">Configuration Precautions</h4><p id="obs_40_0022__p817120327254">After the configuration is complete, you can perform allowed operations using APIs. However, if you log in to OBS Console or OBS Browser+ to perform those operations, an error is reported indicating that you do not have required permissions.</p>
|
|
<p id="obs_40_0022__p116361483599">This is because when you log in to OBS Console or OBS Browser+, APIs (such as <strong id="obs_40_0022__b337011864314">ListAllMyBuckets</strong> and <strong id="obs_40_0022__b71716203434">ListBucket</strong>) are called to load the bucket list and object list and some other APIs will also be called on other pages, but your permissions do not cover those APIs. In such case, your access to OBS Console or OBS Browser+ is denied or your operation is not allowed.</p>
|
|
<p id="obs_40_0022__p7807163365117">To allow IAM users to operate buckets and objects on OBS Console or OBS Browser+, add at least the <strong id="obs_40_0022__b44441417182119">obs:bucket:ListAllMyBuckets</strong> and <strong id="obs_40_0022__b3451161714213">obs:bucket:ListBucket</strong> permissions to the custom policy.</p>
|
|
</div>
|
|
<div class="section" id="obs_40_0022__section1976313561854"><h4 class="sectiontitle">Procedure</h4><ol id="obs_40_0022__ol170633855216"><li id="obs_40_0022__li10432131493113"><span>Log in to the management console using a cloud service account.</span></li><li id="obs_40_0022__li625685643115"><span>On the top menu bar, choose <strong id="obs_40_0022__b19348101015418">Service List</strong> > <strong id="obs_40_0022__b1034881065414">Management & Deployment</strong> > <strong id="obs_40_0022__b143481108548">Identity and Access Management</strong>. The IAM console is displayed.</span></li><li id="obs_40_0022__li1848615103345"><span>In the navigation pane, choose <strong id="obs_40_0022__b6600151112716">Permissions</strong>.</span></li><li id="obs_40_0022__li1388483016366"><span>Click <strong id="obs_40_0022__b07324916548">Create Custom Policy</strong> in the upper right corner.</span></li><li id="obs_40_0022__li1161395452712"><span>Configure parameters for a custom policy.</span><p><div class="fignone" id="obs_40_0022__fig59601157145012"><span class="figcap"><b>Figure 1 </b>Configuring a custom policy</span><br><span><img id="obs_40_0022__image1096195735010" src="en-us_image_0000001436253413.png"></span></div>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="obs_40_0022__table6375112782815" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameters for configuring a custom policy</caption><thead align="left"><tr id="obs_40_0022__row6375927132818"><th align="left" class="cellrowborder" valign="top" width="25.25%" id="mcps1.3.4.2.5.2.2.2.3.1.1"><p id="obs_40_0022__p23757272286"><strong id="obs_40_0022__b9153439274332">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="74.75%" id="mcps1.3.4.2.5.2.2.2.3.1.2"><p id="obs_40_0022__p63751027152820"><strong id="obs_40_0022__b4297141804332">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="obs_40_0022__row17375102752819"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.4.2.5.2.2.2.3.1.1 "><p id="obs_40_0022__p1737572772816">Policy Name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.75%" headers="mcps1.3.4.2.5.2.2.2.3.1.2 "><p id="obs_40_0022__p83758278280">Name of the custom policy</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_40_0022__row1937592712288"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.4.2.5.2.2.2.3.1.1 "><p id="obs_40_0022__p173753272284">Policy View</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.75%" headers="mcps1.3.4.2.5.2.2.2.3.1.2 "><p id="obs_40_0022__p17375102714285">Set this parameter based on your own habits. <strong id="obs_40_0022__b498165611613">Visual editor</strong> is used here.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_40_0022__row133751227142812"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.4.2.5.2.2.2.3.1.1 "><p id="obs_40_0022__p203751027172816">Policy Content</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.75%" headers="mcps1.3.4.2.5.2.2.2.3.1.2 "><ul id="obs_40_0022__ul312618263319"><li id="obs_40_0022__li112652673110">Select <strong id="obs_40_0022__b15462797584332">Allow</strong>.</li><li id="obs_40_0022__li1952919359">Select <strong id="obs_40_0022__b10755842674332">Object Storage Service (OBS)</strong>.</li><li id="obs_40_0022__li813512281313">Select the actions to be authorized.</li><li id="obs_40_0022__li024173143415">Select <strong id="obs_40_0022__b7462133612293">All</strong> for resources.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="obs_40_0022__row15393131325217"><td class="cellrowborder" valign="top" width="25.25%" headers="mcps1.3.4.2.5.2.2.2.3.1.1 "><p id="obs_40_0022__p83756273285">Scope</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.75%" headers="mcps1.3.4.2.5.2.2.2.3.1.2 "><p id="obs_40_0022__p1037542711283">The default value is <strong id="obs_40_0022__b205702420511">Global services</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</p></li><li id="obs_40_0022__li1293324623719"><span>Click <strong id="obs_40_0022__b5831489364332">OK</strong>. The custom policy is created.</span></li><li id="obs_40_0022__li81339157389"><span><a href="https://docs.otc.t-systems.com/en-us/usermanual/iam/iam_01_0030.html" target="_blank" rel="noopener noreferrer">Create a user group and assign permissions</a>.</span><p><p id="obs_40_0022__p1312812258417">Add the created custom policy to the user group by following the instructions in the IAM document.</p>
|
|
</p></li><li id="obs_40_0022__li12273529113919"><span>Add the IAM user you want to authorize to the created user group by referring to <a href="https://docs.otc.t-systems.com/en-us/usermanual/iam/iam_01_0031.html" target="_blank" rel="noopener noreferrer">Creating a User and Adding the User to a User Group</a>.</span><p><div class="note" id="obs_40_0022__note1402619155515"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="obs_40_0022__p37253183814">Due to data caching, it takes about 10 to 15 minutes for a custom policy to take effect after the authorization.</p>
|
|
</div></div>
|
|
</p></li></ol>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="obs_40_0019.html">Granting Permissions to Multiple IAM Users or User Groups Under the Account</a></div>
|
|
</div>
|
|
</div>
|
|
|