

# Managing access controls
<a name="users-policies"></a>

You can control a user's access to Amazon Transfer Family resources by using an Amazon Identity and Access Management (IAM) policy. An IAM policy is a statement, typically in JSON format, that allows a certain level of access to a resource. You use an IAM policy to define what file operations that you want to allow your users to perform and not perform. You can also use an IAM policy to define what Amazon S3 bucket or buckets that you want to give your users access to. To specify these policies for users, you create an IAM role for Amazon Transfer Family that has the IAM policy and trust relationship associated with it.

Each user is assigned an IAM role. The type of IAM role that Amazon Transfer Family uses is called a *service role*. When a user logs in to your server, Amazon Transfer Family assumes the IAM role mapped to the user. To learn about creating an IAM role that provides a user access to an Amazon S3 bucket, see [Creating a role to delegate permissions to an Amazon service](https://docs.amazonaws.cn/IAM/latest/UserGuide/id_roles_create_for-service.html) in the *IAM User Guide*.

You can grant write-only access to Amazon S3 objects by using certain permissions within an IAM policy. For details, see [Grant ability to only write and list files](configure-storage.md#headobject-access-denied).

The Amazon Storage Blog contains a post detailing how to set up least privilege access. For details, see [Implementing least privilege access in an Amazon Transfer Family workflow](https://amazonaws-china.com/blogs//storage/implementing-least-privilege-access-in-an-aws-transfer-family-workflow/).

**Note**  
 If your Amazon S3 bucket is encrypted using Amazon Key Management Service (Amazon KMS), you must specify additional permissions in your policy. For details, see [Data protection and encryption](encryption-at-rest.md). Additionally, you can see more information about [session policies](https://docs.amazonaws.cn/IAM/latest/UserGuide/access_policies.html#policies_session.html) in the *IAM User Guide*. 

**Topics**
+ [Allowing read and write access to an Amazon S3 bucket](users-policies-all-access.md)
+ [Creating a session policy for an Amazon S3 bucket](users-policies-session.md)
+ [Dynamic permission management approaches](dynamic-permission-management.md)