A method for automatically supplying a secure connection proxy with remote targets on the basis of privileged account data, characterized in that it includes: - a step of exploring, by a robot, at least one domain (1, 2) with directory (19, 29) for identifying the privileged accounts, the directory comprising, on the one hand, the recording of a list of accounts made up of information such as the identifier of a user, information on his identity, on his belonging to a group, as well as information relating to his privileges, the directory comprising, on the other hand, the saving of another list, different from the list of accounts, consisting of information such as the identifier of a machine and the technical characteristics thereof, querying the directory (19, 29) to retrieve the list of identifiers of users belonging to groups indicated as having privileges and the identifier of all the machines in the corresponding domain (1, 2), the robot then performs a remote connection to each of the machines identified in the previous step, and performs a query to retrieve privileged account right information for the machine considered, identify purely local privileged accounts with the machine, and gather the corresponding activity log information, - a filtered step on the information gathered during the previous step, based on parameters that define a subset of privileged accounts, after which privileged accounts are selected, - a step of calculation of an optimal association between the machines and the accounts selected upon completion of the filtering step, this calculation taking into account the data from the activity logs, - a step of supplying the proxy with the selected privileged account data. - a step of exploring, by a robot, at least one domain (1, 2) with directory (19, 29) for identifying the privileged accounts, the directory comprising, on the one hand, the recording of a list of accounts made up of information such as the identifier of a user, information on his identity, on his belonging to a group, as well as information relating to his privileges, the directory comprising, on the other hand, the saving of another list, different from the list of accounts, consisting of information such as the identifier of a machine and the technical characteristics thereof, querying the directory (19, 29) to retrieve the list of identifiers of users belonging to groups indicated as having privileges and the identifier of all the machines in the corresponding domain (1, 2), the robot then performs a remote connection to each of the machines identified in the previous step, and performs a query to retrieve privileged account right information for the machine considered, identify purely local privileged accounts with the machine, and gather the corresponding activity log information, - a filtered step on the information gathered during the previous step, based on parameters that define a subset of privileged accounts, after which privileged accounts are selected, - a step of calculation of an optimal association between the machines and the accounts selected upon completion of the filtering step, this calculation taking into account the data from the activity logs, - a step of supplying the proxy with the selected privileged account data.