aws iam
Identity and Access Management (IAM) is a web service for securely controlling access to Amazon Web Services services. AWS CLI reference
180 commands Its page in the AWS CLI reference
Commands
accept-delegation-requestAccepts a delegation request, granting the requested temporary access.acquire-roleCreates an IAM role from the specified role template.add-client-id-to-open-id-connect-providerAdds a new client ID (also known as audience) to the list of client IDs already registered for the specified IAM OpenID Connect (OIDC) provider resource.add-role-to-instance-profileAdds the specified IAM role to the specified instance profile.add-user-to-groupAdds the specified user to the specified group.associate-delegation-requestAssociates a delegation request with the current identity.attach-group-policyAttaches the specified managed policy to the specified IAM group.attach-role-policyAttaches the specified managed policy to the specified IAM role.attach-user-policyAttaches the specified managed policy to the specified user.change-passwordChanges the password of the IAM user who is calling this operation.create-access-keyCreates a new Amazon Web Services secret access key and corresponding Amazon Web Services access key ID for the specified user.create-account-aliasCreates an alias for your Amazon Web Services account.create-delegation-requestCreates an IAM delegation request for temporary access delegation.create-groupCreates a new group.create-instance-profileCreates a new instance profile.create-login-profileCreates a password for the specified IAM user.create-open-id-connect-providerCreates an IAM entity to describe an identity provider (IdP) that supports OpenID Connect (OIDC).create-policyCreates a new managed policy for your Amazon Web Services account.create-policy-versionCreates a new version of the specified managed policy.create-roleCreates a new role for your Amazon Web Services account.create-saml-providerCreates an IAM resource that describes an identity provider (IdP) that supports SAML 2.0.create-service-linked-roleCreates an IAM role that is linked to a specific Amazon Web Services service.create-service-specific-credentialGenerates a set of credentials consisting of a user name and password that can be used to access the service specified in the request.create-userCreates a new IAM user for your Amazon Web Services account.create-virtual-mfa-deviceCreates a new virtual MFA device for the Amazon Web Services account.deactivate-mfa-deviceDeactivates the specified MFA device and removes it from association with the user name for which it was originally enabled.delete-access-keyDeletes the access key pair associated with the specified IAM user.delete-account-aliasDeletes the specified Amazon Web Services account alias.delete-account-password-policyDeletes the password policy for the Amazon Web Services account.delete-groupDeletes the specified IAM group.delete-group-policyDeletes the specified inline policy that is embedded in the specified IAM group.delete-instance-profileDeletes the specified instance profile.delete-login-profileDeletes the password for the specified IAM user or root user, For more information, see Managing passwords for IAM users.delete-open-id-connect-providerDeletes an OpenID Connect identity provider (IdP) resource object in IAM.delete-policyDeletes the specified managed policy.delete-policy-versionDeletes the specified version from the specified managed policy.delete-roleDeletes the specified role.delete-role-permissions-boundaryDeletes the permissions boundary for the specified IAM role.delete-role-policyDeletes the specified inline policy that is embedded in the specified IAM role.delete-saml-providerDeletes a SAML provider resource in IAM.delete-server-certificateDeletes the specified server certificate.delete-service-linked-roleSubmits a service-linked role deletion request and returns a DeletionTaskId, which you can use to check the status of the deletion.delete-service-specific-credentialDeletes the specified service-specific credential.delete-signing-certificateDeletes a signing certificate associated with the specified IAM user.delete-ssh-public-keyDeletes the specified SSH public key.delete-userDeletes the specified IAM user.delete-user-permissions-boundaryDeletes the permissions boundary for the specified IAM user.delete-user-policyDeletes the specified inline policy that is embedded in the specified IAM user.delete-virtual-mfa-deviceDeletes a virtual MFA device.detach-group-policyRemoves the specified managed policy from the specified IAM group.detach-role-policyRemoves the specified managed policy from the specified role.detach-user-policyRemoves the specified managed policy from the specified user.disable-organizations-root-credentials-managementDisables the management of privileged root user credentials across member accounts in your organization.disable-organizations-root-sessionsDisables root user sessions for privileged tasks across member accounts in your organization.disable-outbound-web-identity-federationDisables the outbound identity federation feature for your Amazon Web Services account.enable-mfa-deviceEnables the specified MFA device and associates it with the specified IAM user.enable-organizations-root-credentials-managementEnables the management of privileged root user credentials across member accounts in your organization.enable-organizations-root-sessionsAllows the management account or delegated administrator to perform privileged tasks on member accounts in your organization.enable-outbound-web-identity-federationEnables the outbound identity federation feature for your Amazon Web Services account.generate-credential-reportGenerates a credential report for the Amazon Web Services account.generate-organizations-access-reportGenerates a report for service last accessed data for Organizations.generate-service-last-accessed-detailsGenerates a report that includes details about when an IAM resource (user, group, role, or policy) was last used in an attempt to access Amazon Web Services services.get-access-key-last-usedRetrieves information about when the specified access key was last used.get-account-authorization-detailsRetrieves information about all IAM users, groups, roles, and policies in your Amazon Web Services account, including their relationships to one another.get-account-password-policyRetrieves the password policy for the Amazon Web Services account.get-account-propertiesRetrieves the account-level properties for the caller's Amazon Web Services account.get-account-summaryRetrieves information about IAM entity usage and IAM quotas in the Amazon Web Services account.get-context-keys-for-custom-policyGets a list of all of the context keys referenced in the input policies.get-context-keys-for-principal-policyGets a list of all of the context keys referenced in all the IAM policies that are attached to the specified IAM entity.get-credential-reportRetrieves a credential report for the Amazon Web Services account.get-delegation-requestRetrieves information about a specific delegation request.get-groupReturns a list of IAM users that are in the specified IAM group.get-group-policyRetrieves the specified inline policy document that is embedded in the specified IAM group.get-human-readable-summaryRetrieves a human readable summary for a given entity.get-instance-profileRetrieves information about the specified instance profile, including the instance profile's path, GUID, ARN, and role.get-login-profileRetrieves the user name for the specified IAM user.get-mfa-deviceRetrieves information about an MFA device for a specified user.get-open-id-connect-providerReturns information about the specified OpenID Connect (OIDC) provider resource object in IAM.get-organizations-access-reportRetrieves the service last accessed data report for Organizations that was previously generated using the GenerateOrganizationsAccessReport operation.get-outbound-web-identity-federation-infoRetrieves the configuration information for the outbound identity federation feature in your Amazon Web Services account.get-policyRetrieves information about the specified managed policy, including the policy's default version and the total number of IAM users, groups, and roles to which the policy is attached.get-policy-versionRetrieves information about the specified version of the specified managed policy, including the policy document.get-roleRetrieves information about the specified role, including the role's path, GUID, ARN, and the role's trust policy that grants permission to assume the role.get-role-policyRetrieves the specified inline policy document that is embedded with the specified IAM role.get-role-template-versionRetrieves information about a version of the specified role template.get-saml-providerReturns the SAML provider metadocument that was uploaded when the IAM SAML provider resource object was created or updated.get-server-certificateRetrieves information about the specified server certificate stored in IAM.get-service-last-accessed-detailsRetrieves a service last accessed report that was created using the GenerateServiceLastAccessedDetails operation.get-service-last-accessed-details-with-entitiesAfter you generate a group or policy report using the GenerateServiceLastAccessedDetails operation, you can use the JobId parameter in GetServiceLastAccessedDetailsWithEntities.get-service-linked-role-deletion-statusRetrieves the status of your service-linked role deletion.get-ssh-public-keyRetrieves the specified SSH public key, including metadata about the key.get-userRetrieves information about the specified IAM user, including the user's creation date, path, unique ID, and ARN.get-user-policyRetrieves the specified inline policy document that is embedded in the specified IAM user.list-access-keysReturns information about the access key IDs associated with the specified IAM user.list-account-aliasesLists the account alias associated with the Amazon Web Services account (Note: you can have only one).list-attached-group-policiesLists all managed policies that are attached to the specified IAM group.list-attached-role-policiesLists all managed policies that are attached to the specified IAM role.list-attached-user-policiesLists all managed policies that are attached to the specified IAM user.list-delegation-requestsLists delegation requests based on the specified criteria.list-entities-for-policyLists all IAM users, groups, and roles that the specified managed policy is attached to.list-group-policiesLists the names of the inline policies that are embedded in the specified IAM group.list-groupsLists the IAM groups that have the specified path prefix.list-groups-for-userLists the IAM groups that the specified IAM user belongs to.list-instance-profile-tagsLists the tags that are attached to the specified IAM instance profile.list-instance-profilesLists the instance profiles that have the specified path prefix.list-instance-profiles-for-roleLists the instance profiles that have the specified associated IAM role.list-mfa-device-tagsLists the tags that are attached to the specified IAM virtual multi-factor authentication (MFA) device.list-mfa-devicesLists the MFA devices for an IAM user.list-open-id-connect-provider-tagsLists the tags that are attached to the specified OpenID Connect (OIDC)-compatible identity provider.list-open-id-connect-providersLists information about the IAM OpenID Connect (OIDC) provider resource objects defined in the Amazon Web Services account.list-organizations-featuresLists the centralized root access features enabled for your organization.list-policiesLists all the managed policies that are available in your Amazon Web Services account, including your own customer-defined managed policies and all Amazon Web Services managed policies.list-policies-granting-service-accessRetrieves a list of policies that the IAM identity (user, group, or role) can use to access each specified service.list-policy-tagsLists the tags that are attached to the specified IAM customer managed policy.list-policy-versionsLists information about the versions of the specified managed policy, including the version that is currently set as the policy's default version.list-role-policiesLists the names of the inline policies that are embedded in the specified IAM role.list-role-tagsLists the tags that are attached to the specified role.list-rolesLists the IAM roles that have the specified path prefix.list-saml-provider-tagsLists the tags that are attached to the specified Security Assertion Markup Language (SAML) identity provider.list-saml-providersLists the SAML provider resource objects defined in IAM in the account.list-server-certificate-tagsLists the tags that are attached to the specified IAM server certificate.list-server-certificatesLists the server certificates stored in IAM that have the specified path prefix.list-service-specific-credentialsReturns information about the service-specific credentials associated with the specified IAM user.list-signing-certificatesReturns information about the signing certificates associated with the specified IAM user.list-ssh-public-keysReturns information about the SSH public keys associated with the specified IAM user.list-user-policiesLists the names of the inline policies embedded in the specified IAM user.list-user-tagsLists the tags that are attached to the specified IAM user.list-usersLists the IAM users that have the specified path prefix.list-virtual-mfa-devicesLists the virtual MFA devices defined in the Amazon Web Services account by assignment status.put-account-propertiesSets account-level properties for the caller's Amazon Web Services account.put-group-policyAdds or updates an inline policy document that is embedded in the specified IAM group.put-role-permissions-boundaryAdds or updates the policy that is specified as the IAM role's permissions boundary.put-role-policyAdds or updates an inline policy document that is embedded in the specified IAM role.put-user-permissions-boundaryAdds or updates the policy that is specified as the IAM user's permissions boundary.put-user-policyAdds or updates an inline policy document that is embedded in the specified IAM user.reject-delegation-requestRejects a delegation request, denying the requested temporary access.remove-client-id-from-open-id-connect-providerRemoves the specified client ID (also known as audience) from the list of client IDs registered for the specified IAM OpenID Connect (OIDC) provider resource object.remove-role-from-instance-profileRemoves the specified IAM role from the specified Amazon EC2 instance profile.remove-user-from-groupRemoves the specified user from the specified group.reset-service-specific-credentialResets the password for a service-specific credential.resync-mfa-deviceSynchronizes the specified MFA device with its IAM resource object on the Amazon Web Services servers.send-delegation-tokenSends the exchange token for an accepted delegation request.set-default-policy-versionSets the specified version of the specified policy as the policy's default (operative) version.set-security-token-service-preferencesSets the specified version of the global endpoint token as the token version used for the Amazon Web Services account.simulate-custom-policySimulate how a set of IAM policies and optionally a resource-based policy works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions.simulate-principal-policySimulate how a set of IAM policies attached to an IAM entity works with a list of API operations and Amazon Web Services resources to determine the policies' effective permissions.tag-instance-profileAdds one or more tags to an IAM instance profile.tag-mfa-deviceAdds one or more tags to an IAM virtual multi-factor authentication (MFA) device.tag-open-id-connect-providerAdds one or more tags to an OpenID Connect (OIDC)-compatible identity provider.tag-policyAdds one or more tags to an IAM customer managed policy.tag-roleAdds one or more tags to an IAM role.tag-saml-providerAdds one or more tags to a Security Assertion Markup Language (SAML) identity provider.tag-server-certificateAdds one or more tags to an IAM server certificate.tag-userAdds one or more tags to an IAM user.untag-instance-profileRemoves the specified tags from the IAM instance profile.untag-mfa-deviceRemoves the specified tags from the IAM virtual multi-factor authentication (MFA) device.untag-open-id-connect-providerRemoves the specified tags from the specified OpenID Connect (OIDC)-compatible identity provider in IAM.untag-policyRemoves the specified tags from the customer managed policy.untag-roleRemoves the specified tags from the role.untag-saml-providerRemoves the specified tags from the specified Security Assertion Markup Language (SAML) identity provider in IAM.untag-server-certificateRemoves the specified tags from the IAM server certificate.untag-userRemoves the specified tags from the user.update-access-keyChanges the status of the specified access key from Active to Inactive, or vice versa.update-account-password-policyUpdates the password policy settings for the Amazon Web Services account.update-assume-role-policyUpdates the policy that grants an IAM entity permission to assume a role.update-delegation-requestUpdates an existing delegation request with additional information.update-groupUpdates the name and/or the path of the specified IAM group.update-login-profileChanges the password for the specified IAM user.update-open-id-connect-provider-thumbprintReplaces the existing list of server certificate thumbprints associated with an OpenID Connect (OIDC) provider resource object with a new list of thumbprints.update-roleUpdates the description or maximum session duration setting of a role.update-role-descriptionUse UpdateRole instead.update-saml-providerUpdates the metadata document, SAML encryption settings, and private keys for an existing SAML provider.update-server-certificateUpdates the name and/or the path of the specified server certificate stored in IAM.update-service-specific-credentialSets the status of a service-specific credential to Active or Inactive.update-signing-certificateChanges the status of the specified user signing certificate from active to disabled, or vice versa.update-ssh-public-keySets the status of an IAM user's SSH public key to active or inactive.update-userUpdates the name and/or the path of the specified IAM user.upload-server-certificateUploads a server certificate entity for the Amazon Web Services account.upload-signing-certificateUploads an X.509 signing certificate and associates it with the specified IAM user.upload-ssh-public-keyUploads an SSH public key and associates it with the specified IAM user.