App registration
If you are using second app registration method ("Register the add-in through the Seller Dashboard"), you still need "Use the AppRegNew.aspx page". Otherwise you will get "AADSTS50001: Resource principal was not found in the directory" error while authorising application in SharePoint Online Site collection, using _layouts/15/oauthauthorize.aspx. Alternatively one can use New-MsolServicePrincipal command from PowerShell, but after issuing this command you should wait half of an hour or so, before authorising app, otherwise SPO will not see this new principal.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: 2be8c8d6-7ed2-1907-3038-49d8e1c92e8a
- Version Independent ID: a2adbe13-e625-3995-fded-fce6c4a701ac
- Content: Register SharePoint Add-ins
- Content Source: docs/sp-add-ins/register-sharepoint-add-ins.md
- Service: sharepoint
- GitHub Login: @spdevdocs
- Microsoft Alias: spdevdocs
Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues