I'm creating a console application that will upload files to a SPO site collection. I'm registering a SharePoint app using /Appregnew.aspx page and obtain ClientID and ClientSecret and use it on my console application. I need this console application to work on any of the site collection in SPO tenant.
If I want to use this console application in another site collection within the same tenant, do I need to register a SharePoint app in the new site collection and obtain the ClientID and ClientSecret for that site collection as well?
What's the scope of a SharePoint app registered in SPO? is it tenant level or site collection level?
It turns out that the scope of the SharePoint add-in registration is determined by the App Permission configuration scope. If it's Site Collection level then your add-in would be Site Collection Scope. If it's Tenant level, then your add-in would be Tenant scope.
Below article helped me a lot on achieving my task.
https://blogs.msdn.microsoft.com/kaevans/2014/03/02/building-a-sharepoint-app-as-a-timer-job/