> 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/attach-policies-with-service-account.md).

# Attach Policies with Service Account

After you have created a Service Account and the desired Policy, the next step is to attach the Service Account to the policy as instructed below:

1. Log in to [https://iam.console.vngcloud.vn/](https://iam.console.vngcloud.vn/]\(https://iam.console.vngcloud.vn/\)) with your Root User Account.
2. Select the **Service Account** menu.
3. Choose the **Service Account** for which you want to assign permissions.
4. Click **Attach policies**.
5. Select the **policies** you want to attach. The vIAM system supports attaching multiple policies to a Service Account. If these policies contain independent permissions, they will complement each other (meaning the list of permissions will be consolidated). Conversely, if these policies contain conflicting permissions, you will not be able to access the corresponding resources based on this list of permissions (meaning the list of permissions will be overridden when conflicting).
6. Click **Attach**.

After completing these 6 steps, you can now use the Service Account to access vStorage resources. For more information, 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/attach-policies-with-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.
