describeUser method

Future<DescribeUserResponse> describeUser({
  1. required String instanceId,
  2. required String userId,
})

Describes the specified user account. You can find the instance ID in the console (it’s the final part of the ARN). The console does not display the user IDs. Instead, list the users and note the IDs provided in the output.

May throw InvalidRequestException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServiceException.

Parameter instanceId : The identifier of the Amazon Connect instance.

Parameter userId : The identifier of the user account.

Implementation

Future<DescribeUserResponse> describeUser({
  required String instanceId,
  required String userId,
}) async {
  ArgumentError.checkNotNull(instanceId, 'instanceId');
  _s.validateStringLength(
    'instanceId',
    instanceId,
    1,
    100,
    isRequired: true,
  );
  ArgumentError.checkNotNull(userId, 'userId');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/users/${Uri.encodeComponent(instanceId)}/${Uri.encodeComponent(userId)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeUserResponse.fromJson(response);
}