describe_user_profiles
(**kwargs)¶Describe specified users.
Required Permissions : To use this action, an IAM user must have an attached policy that explicitly grants permissions. For more information about user permissions, see Managing User Permissions.
See also: AWS API Documentation
Request Syntax
response = client.describe_user_profiles(
IamUserArns=[
'string',
]
)
An array of IAM or federated user ARNs that identify the users to be described.
{
'UserProfiles': [
{
'IamUserArn': 'string',
'Name': 'string',
'SshUsername': 'string',
'SshPublicKey': 'string',
'AllowSelfManagement': True|False
},
]
}
Response Structure
Contains the response to a DescribeUserProfiles
request.
A Users
object that describes the specified users.
Describes a user's SSH information.
The user's IAM ARN.
The user's name.
The user's SSH user name.
The user's SSH public key.
Whether users can specify their own SSH public key through the My Settings page. For more information, see Managing User Permissions.
Exceptions
OpsWorks.Client.exceptions.ValidationException
OpsWorks.Client.exceptions.ResourceNotFoundException