Forum Discussion
Christopher Johnson
Nov 16, 2016Brass Contributor
Is it possible to create a Tenant object without Add-in Only authentication?
I am creating a timer job to provision sites asynchronously, similar to PnP Provisioning.OnPrem.Async project sample https://github.com/OfficeDev/PnP/tree/master/Samples/Provisioning.OnPrem.Async. T...
Kiril Iliev
Nov 17, 2016Brass Contributor
The AuthenticationManager class also provides you with a method for user authentication
GetSharePointOnlineAuthenticatedContextTenant
You pass the site collection (admin tenant in your case) and your user name (yourname@tenant.com) and your password. Just ensure that you have the permissions to execute the needed methods.