def get_credentials(self, *args, **kwargs):
arguments, _ = self.argparser.parse_known_args()<EOL>if self.is_pipe and self.use_pipe:<EOL><INDENT>return self.get_pipe(self.object_type)<EOL><DEDENT>elif arguments.tags or arguments.type or arguments.search or arguments.password or arguments.cracked or arguments.range or arguments.domain:<EOL><INDENT>return self.argument_search()<EOL><DEDENT>else:<EOL><INDENT>return self.search(*args, **kwargs)<EOL><DEDENT>
Retrieves the users from elastic.