> For the complete documentation index, see [llms.txt](https://docs.vngcloud.vn/vng-cloud-document/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vngcloud.vn/vng-cloud-document/vstorage/object-storage/vstorage-hcm03/identity-and-access-management/managing-vstorage-access-account/service-account/vstorage-credentials/attach-s3-keys-and-swift-users-to-the-service-account.md).

# Attach S3 Keys and Swift Users to the Service Account

After you created the desired S3 keys and Swift users and set up **Restriction by IAM to YES**, the next step is to associate these credentials with the Service Account. Follow the instructions below:

1. Log in to [https://iam.console.vngcloud.vn/](https://iam.console.vngcloud.vn/]\(https://iam.console.vngcloud.vn/\)) using your Root User Account.
2. Navigate to the vStorage credentials menu.
   1. For S3 keys: Select the S3 tab and ensure the toggle is switched on ![](https://docs.vngcloud.vn/download/thumbnails/69468389/image2023-6-30_9-44-16.png?version=1\&modificationDate=1703473020000\&api=v2) to successfully enable IAM control.
3. 1. For Swift users: Select the Swift tab and ensure the toggle is switched on ![](https://docs.vngcloud.vn/download/thumbnails/69468389/image2023-6-30_9-44-16.png?version=1\&modificationDate=1703473020000\&api=v2) to successfully enable IAM control.
4. Go to the **Service Account** section.
5. Choose the specific **Service Account** where you want to link S3 keys and Swift users.
6. Select **Security credential**.
7. Under **vStorage credential**, click **Attach**.
8. Choose the **S3** **keys** and **Swift users** you want to link to the selected Service Account. The vIAM system supports linking multiple S3 keys and Swift users to one Service Account. However, each S3 key or Swift user can only be linked to one Service Account.

After completing these steps, you can now use the Service Account to access vStorage resources. For more information, please refer to [Access Permissions and Working Through Service Account](https://docs.vngcloud.vn/display/VSEN/Access+Permissions+and+Working+Through+Service+Account).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.vngcloud.vn/vng-cloud-document/vstorage/object-storage/vstorage-hcm03/identity-and-access-management/managing-vstorage-access-account/service-account/vstorage-credentials/attach-s3-keys-and-swift-users-to-the-service-account.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
