Office 365 Config and app registration from scratch

I have access , i can access manually but not using UiPath