- Create a new SharePoint App Principal by navigating to https://
<tenant>
.sharepoint.com/sites/<targetsite>
/_layouts/15/appregnew.aspx. Click the Create buttons for both the Client Id and Client Secret fields. For automation tasks (PowerShell, .NET executables) you can enter generic information for the App Domain and Redirect URL fields.
- Click the Create button.