This is known as "Pretexting".
Pretexting is a type of social designing in which an individual deceives get confidential or personal information. A pretext is a false thought process. Pretexting frequently includes a trick where the liar puts on a show to get data with a specific end goal to affirm the personality of the individual he is conversing with.