IAM (Identity and Access Management) is a system that helps you control who can access what and what actions they are allowed to do in a computer system or cloud platform.
In simple words, IAM is used to manage users and their permissions securely.
An IAM User is a application that is created in AWS to access AWS services with specific permissions.
(or)
An IAM user is an user with permanent login credentials to access AWS Services that are explicitly given to them.
In Amazon Web Services, an IAM user:
An IAM Role is a temporary identity in AWS that gives permissions to access AWS resources. These permissions are temporary and only specific permissions are given. Each role is created for a specific purpose.