Get manager mail using employee mail

Hello all,
I have outlook mail of an employee , can i get the employee’s manager mail ? (Reports to in the organization of employee)

You can get the Manager using Active Directory or Azure Active Directory Libraries depending the way the company managing the users.

You also can get use Microsoft Graph API

No matter the approach, you need specific permission and configuration

Thanks but could you please clarify how can i use microsoft api?
Do i need license?
Can i get manager mail from active directory in backgroud without ui interaction?

You don’t need license to use Graph API, you can connect using a APP registration in Azure and related permissions.

And yes, you can run in background

So in Microsoft graph api approach i will need need UiPath cloud to integrate right ?
As i have UiPath on premises not on cloud