Forum Discussion
Christopher Johnson
Nov 16, 2016Copper 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 here. This is for on-premises SharePoint 2016, and I am having trouble getting Ap...
Kiril Iliev
Nov 17, 2016Copper 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.