Connect.Paginator.
SearchUsers
¶paginator = client.get_paginator('search_users')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from Connect.Client.search_users()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
InstanceId='string',
SearchFilter={
'TagFilter': {
'OrConditions': [
[
{
'TagKey': 'string',
'TagValue': 'string'
},
],
],
'AndConditions': [
{
'TagKey': 'string',
'TagValue': 'string'
},
],
'TagCondition': {
'TagKey': 'string',
'TagValue': 'string'
}
}
},
SearchCriteria={
'OrConditions': [
{'... recursive ...'},
],
'AndConditions': [
{'... recursive ...'},
],
'StringCondition': {
'FieldName': 'string',
'Value': 'string',
'ComparisonType': 'STARTS_WITH'|'CONTAINS'|'EXACT'
},
'HierarchyGroupCondition': {
'Value': 'string',
'HierarchyGroupMatchType': 'EXACT'|'WITH_CHILD_GROUPS'
}
},
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
Filters to be applied to search results.
An object that can be used to specify Tag conditions inside the SearchFilter
. This accepts an OR
of AND
(List of List) input where:
OR
operatorAND
operator.A list of conditions which would be applied together with an OR
condition.
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123
.
The tag key in the tag condition.
The tag value in the tag condition.
A list of conditions which would be applied together with an AND
condition.
A leaf node condition which can be used to specify a tag condition, for example, HAVE BPO = 123
.
The tag key in the tag condition.
The tag value in the tag condition.
A leaf node condition which can be used to specify a tag condition.
The tag key in the tag condition.
The tag value in the tag condition.
The search criteria to be used to return users.
Note
The name
and description
fields support "contains" queries with a minimum of 2 characters and a maximum of 25 characters. Any queries with character lengths outside of this range will throw invalid results.
A list of conditions which would be applied together with an OR
condition.
The search criteria to be used to return users.
Note
The name
and description
fields support "contains" queries with a minimum of 2 characters and a maximum of 25 characters. Any queries with character lengths outside of this range will throw invalid results.
A list of conditions which would be applied together with an AND
condition.
The search criteria to be used to return users.
Note
The name
and description
fields support "contains" queries with a minimum of 2 characters and a maximum of 25 characters. Any queries with character lengths outside of this range will throw invalid results.
A leaf node condition which can be used to specify a string condition.
The name of the field in the string condition.
The value of the string.
The type of comparison to be made when evaluating the string condition.
A leaf node condition which can be used to specify a hierarchy group condition.
The value in the hierarchy group condition.
The type of hierarchy group match.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Users': [
{
'Arn': 'string',
'DirectoryUserId': 'string',
'HierarchyGroupId': 'string',
'Id': 'string',
'IdentityInfo': {
'FirstName': 'string',
'LastName': 'string'
},
'PhoneConfig': {
'PhoneType': 'SOFT_PHONE'|'DESK_PHONE',
'AutoAccept': True|False,
'AfterContactWorkTimeLimit': 123,
'DeskPhoneNumber': 'string'
},
'RoutingProfileId': 'string',
'SecurityProfileIds': [
'string',
],
'Tags': {
'string': 'string'
},
'Username': 'string'
},
],
'ApproximateTotalCount': 123
}
Response Structure
(dict) --
Users (list) --
Information about the users.
(dict) --
Information about the returned users.
Arn (string) --
The Amazon Resource Name (ARN) of the user.
DirectoryUserId (string) --
The directory identifier of the user.
HierarchyGroupId (string) --
The identifier of the user's hierarchy group.
Id (string) --
The identifier of the user's summary.
IdentityInfo (dict) --
The user's first name and last name.
FirstName (string) --
The user's first name.
LastName (string) --
The user's last name.
PhoneConfig (dict) --
Contains information about the phone configuration settings for a user.
PhoneType (string) --
The phone type.
AutoAccept (boolean) --
The Auto accept setting.
AfterContactWorkTimeLimit (integer) --
The After Call Work (ACW) timeout setting, in seconds.
Note
When returned by a SearchUsers
call, AfterContactWorkTimeLimit
is returned in milliseconds.
DeskPhoneNumber (string) --
The phone number for the user's desk phone.
RoutingProfileId (string) --
The identifier of the user's routing profile.
SecurityProfileIds (list) --
The identifiers of the user's security profiles.
Tags (dict) --
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Username (string) --
The name of the user.
ApproximateTotalCount (integer) --
The total number of users who matched your search query.